Skip to main content

Name

Namespace: IotaSdk

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

Inheritance ObjectName
Implements IName, IEquatable<Name>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors

Name(UInt64)

public Name(ulong pointer)

Parameters

pointer UInt64

Methods

Destroy()

public void Destroy()

Dispose()

public void Dispose()

Format(NameFormat)

Formats a name into a string based on the available output formats. The default separator is .

public string Format(NameFormat format)

Parameters

format NameFormat

Returns

String

IsSln()

Returns whether this name is a second-level name (Ex. test.iota)

public bool IsSln()

Returns

Boolean

IsSubname()

Returns whether this name is a subname (Ex. sub.test.iota)

public bool IsSubname()

Returns

Boolean

Label(UInt32)

Get the label at the given index

public string? Label(uint index)

Parameters

index UInt32

Returns

String?

Labels()

Get all of the labels. NOTE: These are in reverse order starting with the top-level name and proceeding to subnames.

public String[] Labels()

Returns

String[]

NumLabels()

Returns the number of labels including TLN.

public uint NumLabels()

Returns

UInt32

Parent()

parents; second-level names return None.

public Name? Parent()

Returns

Name?

ToString()

public override string ToString()

Returns

String

Equals(Name)

public bool Equals(Name? other)

Parameters

other Name?

Returns

Boolean

Equals(Object)

public override bool Equals(object? obj)

Parameters

obj Object?

Returns

Boolean

GetHashCode()

public override int GetHashCode()

Returns

Int32

FromStr(String)

public static Name FromStr(string s)

Parameters

s String

Returns

Name

Exceptions

SdkFfiException