Share via


ActivationId 結構

定義

唯一識別粒紋啟用。

[Orleans.GenerateSerializer]
[Orleans.Immutable]
[System.Text.Json.Serialization.JsonConverter(typeof(Orleans.Runtime.ActivationIdConverter))]
[System.Serializable]
public readonly struct ActivationId : IEquatable<Orleans.Runtime.ActivationId>, ISpanFormattable
[<Orleans.GenerateSerializer>]
[<Orleans.Immutable>]
[<System.Text.Json.Serialization.JsonConverter(typeof(Orleans.Runtime.ActivationIdConverter))>]
[<System.Serializable>]
type ActivationId = struct
    interface ISpanFormattable
    interface IFormattable
Public Structure ActivationId
Implements IEquatable(Of ActivationId), ISpanFormattable
繼承
ActivationId
屬性
實作

建構函式

ActivationId(Guid)

初始化 ActivationId 結構的新執行個體。

屬性

IsDefault

取得值,指出實例是否為預設實例。

方法

Equals(ActivationId)

唯一識別粒紋啟用。

Equals(Object)

唯一識別粒紋啟用。

FromParsableString(String)

剖析使用 ToParsableString() 建立之啟用識別碼的字串表示。

GetDeterministic(GrainId)

傳回以決定性方式計算的啟用識別碼,並從提供的粒紋識別碼重現。

GetHashCode()

唯一識別粒紋啟用。

NewId()

傳回新的隨機啟用識別碼。

ToParsableString()

傳回這個啟用識別碼的字串表示,此識別碼可由 剖析 FromParsableString(String)

ToString()

唯一識別粒紋啟用。

運算子

Equality(ActivationId, ActivationId)

比較所提供的運算元是否相等。

Inequality(ActivationId, ActivationId)

比較所提供的運算元是否不相等。

明確介面實作

IFormattable.ToString(String, IFormatProvider)

唯一識別粒紋啟用。

ISpanFormattable.TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

唯一識別粒紋啟用。

適用於