Share via


GrainExtensions.GetPrimaryKey 方法

定義

多載

GetPrimaryKey(IAddressable, String)

Guid 回粒紋主鍵的表示。

GetPrimaryKey(IGrain, String)
GetPrimaryKey(IGrain)
GetPrimaryKey(IAddressable)

Guid 回粒紋主鍵的表示。

GetPrimaryKey(IAddressable, String)

來源:
GrainExtensions.cs

Guid 回粒紋主鍵的表示。

public static Guid GetPrimaryKey (this Orleans.Runtime.IAddressable grain, out string keyExt);
static member GetPrimaryKey : Orleans.Runtime.IAddressable * string -> Guid
<Extension()>
Public Function GetPrimaryKey (grain As IAddressable, ByRef keyExt As String) As Guid

參數

grain
IAddressable

要為其尋找主鍵的粒紋。

keyExt
String

如果針對該粒紋提供擴充的主鍵,則傳回粒紋主鍵部分的輸出參數。

傳回

Guid 表示這個粒紋的主鍵。

例外狀況

提供的粒紋沒有 Guid 以 為基礎的索引鍵。

適用於

GetPrimaryKey(IGrain, String)

來源:
GrainExtensions.cs
public static Guid GetPrimaryKey (this Orleans.IGrain grain, out string keyExt);
static member GetPrimaryKey : Orleans.IGrain * string -> Guid
<Extension()>
Public Function GetPrimaryKey (grain As IGrain, ByRef keyExt As String) As Guid

參數

grain
IGrain
keyExt
String

傳回

適用於

GetPrimaryKey(IGrain)

來源:
GrainExtensions.cs
public static Guid GetPrimaryKey (this Orleans.IGrain grain);
static member GetPrimaryKey : Orleans.IGrain -> Guid
<Extension()>
Public Function GetPrimaryKey (grain As IGrain) As Guid

參數

grain
IGrain

傳回

適用於

GetPrimaryKey(IAddressable)

來源:
GrainExtensions.cs

Guid 回粒紋主鍵的表示。

public static Guid GetPrimaryKey (this Orleans.Runtime.IAddressable grain);
static member GetPrimaryKey : Orleans.Runtime.IAddressable -> Guid
<Extension()>
Public Function GetPrimaryKey (grain As IAddressable) As Guid

參數

grain
IAddressable

要為其尋找主鍵的粒紋。

傳回

Guid 表示這個粒紋的主鍵。

例外狀況

提供的粒紋沒有 Guid 以 為基礎的索引鍵。

適用於