Owner
Namespace: IotaSdk
Enum of different types of ownership for an object.
BCS
The BCS serialized form for this type is defined by the following ABNF:
owner = owner-address / owner-object / owner-shared / owner-immutable
owner-address = %d00 address
owner-object = %d01 object-id
owner-shared = %d02 u64
owner-immutable = %d03
public class Owner : IOwner, System.IEquatable`1[[IotaSdk.Owner, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → Owner
Implements IOwner, IEquatable<Owner>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
Owner(UInt64)
public Owner(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
AddressOrObject()
Returns an Address if this object is owned by an address or
object, and None if it is shared or immutable.
public Address? AddressOrObject()
Returns
AsAddress()
Convert this owner into an address owner if it is one, or panic otherwise
public Address AsAddress()
Returns
AsObject()
Convert this owner into an object owner if it is one, or panic otherwise
public ObjectId AsObject()
Returns
AsOptAddress()
Convert this owner into an address owner if it is one, or return None
otherwise
public Address? AsOptAddress()
Returns
AsOptObject()
Convert this owner into an object owner if it is one, or return None
otherwise
public ObjectId? AsOptObject()
Returns
AsOptShared()
Convert this owner into a shared owner if it is one, or return None
otherwise
public Version? AsOptShared()
Returns
AsShared()
Convert this owner into a shared owner if it is one, or panic otherwise
public Version AsShared()
Returns
IsAddress()
Check if this is an address owner
public bool IsAddress()
Returns
IsImmutable()
Check if this is an immutable owner
public bool IsImmutable()
Returns
IsObject()
Check if this is an object owner
public bool IsObject()
Returns
IsShared()
Check if this is a shared owner
public bool IsShared()
Returns
ToString()
public override string ToString()
Returns
Equals(Owner)
public bool Equals(Owner? other)
Parameters
other Owner?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
GetHashCode()
public override int GetHashCode()
Returns
NewAddress(Address)
public static Owner NewAddress(Address address)
Parameters
address Address
Returns
NewImmutable()
public static Owner NewImmutable()
Returns
NewObject(ObjectId)
public static Owner NewObject(ObjectId id)
Parameters
id ObjectId
Returns
NewShared(Version)
public static Owner NewShared(Version version)
Parameters
version Version