次の方法で共有


GrainId 構造体

定義

グレインを識別します。

[Orleans.GenerateSerializer]
[Orleans.Immutable]
[System.Text.Json.Serialization.JsonConverter(typeof(Orleans.Runtime.GrainIdJsonConverter))]
[System.Serializable]
public readonly struct GrainId : IComparable<Orleans.Runtime.GrainId>, IEquatable<Orleans.Runtime.GrainId>, IParsable<Orleans.Runtime.GrainId>, ISpanFormattable, ISpanParsable<Orleans.Runtime.GrainId>, System.Runtime.Serialization.ISerializable
[<Orleans.GenerateSerializer>]
[<Orleans.Immutable>]
[<System.Text.Json.Serialization.JsonConverter(typeof(Orleans.Runtime.GrainIdJsonConverter))>]
[<System.Serializable>]
type GrainId = struct
    interface ISerializable
    interface ISpanFormattable
    interface IFormattable
    interface ISpanParsable<GrainId>
    interface IParsable<GrainId>
Public Structure GrainId
Implements IComparable(Of GrainId), IEquatable(Of GrainId), IParsable(Of GrainId), ISerializable, ISpanFormattable, ISpanParsable(Of GrainId)
継承
GrainId
属性
実装

コンストラクター

GrainId(GrainType, IdSpan)

新しい GrainType のインスタンスを作成します。

プロパティ

IsDefault

true このインスタンスが既定値の場合は 。 false そうでない場合は 。

Key

グレイン キーを取得します。

Type

グレインの種類を取得します。

メソッド

CompareTo(GrainId)

グレインを識別します。

Create(GrainType, IdSpan)

新しい GrainType のインスタンスを作成します。

Create(GrainType, String)

新しい GrainType のインスタンスを作成します。

Create(String, String)

新しい GrainType のインスタンスを作成します。

Equals(GrainId)

グレインを識別します。

Equals(Object)

グレインを識別します。

GetHashCode()

グレインを識別します。

GetObjectData(SerializationInfo, StreamingContext)

グレインを識別します。

GetUniformHashCode()

グレイン ID の均一で安定したハッシュ コードを生成します。

Parse(ReadOnlySpan<Char>, IFormatProvider)

スパンから を GrainId 解析します。

Parse(String)

文字列から を GrainId 解析します。

Parse(String, IFormatProvider)

文字列から を GrainId 解析します。

ToString()

グレインを識別します。

TryParse(ReadOnlySpan<Char>, IFormatProvider, GrainId)

スパンから を GrainId 解析しようとします。

TryParse(String, GrainId)

文字列から を GrainId 解析しようとします。

TryParse(String, IFormatProvider, GrainId)

文字列から を GrainId 解析しようとします。

演算子

Equality(GrainId, GrainId)

指定されたオペランドを等しいかどうかを比較します。

Inequality(GrainId, GrainId)

指定されたオペランドを等しくないかどうかを比較します。

明示的なインターフェイスの実装

IFormattable.ToString(String, IFormatProvider)

グレインを識別します。

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

グレインを識別します。

拡張メソッド

GetGuidKey(GrainId)

Guidグレイン主キーの表現を返します。

GetGuidKey(GrainId, String)

Guidグレイン主キーの表現を返します。

GetIntegerKey(GrainId)

グレイン キーの Int64 表現を返します。

GetIntegerKey(GrainId, String)

グレイン キーの Int64 表現を返します。

TryGetGuidKey(GrainId, Guid, String)

指定されたKeyグレイン ID の部分を解析して、キーとStringキー拡張機能をGuid抽出しようとします。

TryGetIntegerKey(GrainId, Int64, String)

指定されたKeyグレイン ID の部分を解析して、キーとStringキー拡張機能をInt64抽出しようとします。

IsClient(GrainId)

ID が true クライアントを表す場合は を false 返します 。そうでない場合は を返します。

IsSystemTarget(GrainId)

true ID がシステム ターゲットを表す場合は をfalse返します 。そうでない場合は を返します。

適用対象