Skip to main content

IName

Namespace: IotaSdk

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

Implements IEquatable<Name>
Attributes NullableContextAttribute

Methods

Format(NameFormat)

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

string Format(NameFormat format)

Parameters

format NameFormat

Returns

String

IsSln()

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

bool IsSln()

Returns

Boolean

IsSubname()

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

bool IsSubname()

Returns

Boolean

Label(UInt32)

Get the label at the given index

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.

String[] Labels()

Returns

String[]

NumLabels()

Returns the number of labels including TLN.

uint NumLabels()

Returns

UInt32

Parent()

parents; second-level names return None.

Name? Parent()

Returns

Name?