Skip to main content

ObjectReference

Namespace: IotaSdk

Reference to an object

Contains sufficient information to uniquely identify a specific object.

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

public record class ObjectReference : System.IDisposable, System.IEquatable`1[[IotaSdk.ObjectReference, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance Object → ObjectReference
Implements IDisposable, IEquatable<ObjectReference>
Attributes NullableContextAttribute, NullableAttribute

Properties​

ObjectId​

public ObjectId ObjectId { get; init; }

Property Value​

ObjectId

Version​

public Version Version { get; init; }

Property Value​

Version

Digest​

public ObjectDigest Digest { get; init; }

Property Value​

ObjectDigest

Constructors​

ObjectReference(ObjectId, Version, ObjectDigest)​

Reference to an object

Contains sufficient information to uniquely identify a specific object.

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

public ObjectReference(ObjectId ObjectId, Version Version, ObjectDigest Digest)

Parameters​

ObjectId ObjectId

Version Version

Digest ObjectDigest

Methods​

Dispose()​

public void Dispose()

ToBcs()​

Convert this type to BCS encoded bytes.

public Byte[] ToBcs()

Returns​

Byte[]

Exceptions​

SdkFfiException

ToDisplayString()​

Render this type as human-readable text.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

public string ToDisplayString()

Returns​

String

ToJson()​

Convert this type to a JSON encoded string.

public string ToJson()

Returns​

String

Exceptions​

SdkFfiException