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
IsSln()
Returns whether this name is a second-level name (Ex. test.iota)
bool IsSln()
Returns
IsSubname()
Returns whether this name is a subname (Ex. sub.test.iota)
bool IsSubname()
Returns
Label(UInt32)
Get the label at the given index
string? Label(uint index)
Parameters
index UInt32
Returns
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
NumLabels()
Returns the number of labels including TLN.
uint NumLabels()
Returns
Parent()
parents; second-level names return None.
Name? Parent()
Returns
Name?