Table of Contents

Struct Identity

Namespace
IceRpc.Ice
Assembly
IceRpc.Ice.dll

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

decoder IceDecoder

Identity(string, string)

Initializes a new instance of the Identity struct.

[SetsRequiredMembers]
public Identity(string name, string category)

Parameters

name string
category string

Properties

Category

The category of the object.

public string Category { readonly get; set; }

Property Value

string

Name

The name of the Ice object. An empty name is not valid.

public required string Name { readonly get; set; }

Property Value

string

Methods

Encode(ref IceEncoder)

Encodes the fields of this struct with an Ice encoder.

public readonly void Encode(ref IceEncoder encoder)

Parameters

encoder IceEncoder

Parse(string)

Parses a path into an identity, including the null/empty identity.

public static Identity Parse(string path)

Parameters

path string

The 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.