Struct Identity
Represents the identity of an Ice object. It is comparable to the path of a URI. Its string representation is
name when the category is empty, and category/name when the category is not empty.
public record struct Identity : IEquatable<Identity>
- Implements
- Inherited Members
Remarks
The Ice compiler generated this record struct from Ice struct ::Ice::Identity.
Constructors
Identity()
Initializes a new instance of the Identity struct.
public Identity()
Identity(ref IceDecoder)
Initializes a new instance of the Identity struct from an IceDecoder.
[SetsRequiredMembers]
public Identity(ref IceDecoder decoder)
Parameters
decoderIceDecoder
Identity(string, string)
Initializes a new instance of the Identity struct.
[SetsRequiredMembers]
public Identity(string name, string category)
Parameters
Properties
Category
The category of the object.
public string Category { readonly get; set; }
Property Value
Name
The name of the Ice object. An empty name is not valid.
public required string Name { readonly get; set; }
Property Value
Methods
Encode(ref IceEncoder)
Encodes the fields of this struct with an Ice encoder.
public readonly void Encode(ref IceEncoder encoder)
Parameters
encoderIceEncoder
Parse(string)
Parses a path into an identity, including the null/empty identity.
public static Identity Parse(string path)
Parameters
pathstringThe path (percent escaped).
Returns
- Identity
The corresponding identity.
ToPath()
Converts this identity into a path.
public readonly string ToPath()
Returns
- string
The identity converted into a path string.
ToString()
Converts this identity into a path string.
public override readonly string ToString()
Returns
- string
The identity converted into a path string.