共用方式為


GrainId.Create 方法

定義

多載

Create(GrainType, IdSpan)

建立新的 GrainType 執行個體。

Create(GrainType, String)

建立新的 GrainType 執行個體。

Create(String, String)

建立新的 GrainType 執行個體。

Create(GrainType, IdSpan)

建立新的 GrainType 執行個體。

public static Orleans.Runtime.GrainId Create (Orleans.Runtime.GrainType type, Orleans.Runtime.IdSpan key);
static member Create : Orleans.Runtime.GrainType * Orleans.Runtime.IdSpan -> Orleans.Runtime.GrainId
Public Shared Function Create (type As GrainType, key As IdSpan) As GrainId

參數

type
GrainType
key
IdSpan

傳回

適用於

Create(GrainType, String)

建立新的 GrainType 執行個體。

public static Orleans.Runtime.GrainId Create (Orleans.Runtime.GrainType type, string key);
static member Create : Orleans.Runtime.GrainType * string -> Orleans.Runtime.GrainId
Public Shared Function Create (type As GrainType, key As String) As GrainId

參數

type
GrainType
key
String

傳回

適用於

Create(String, String)

建立新的 GrainType 執行個體。

public static Orleans.Runtime.GrainId Create (string type, string key);
static member Create : string * string -> Orleans.Runtime.GrainId
Public Shared Function Create (type As String, key As String) As GrainId

參數

type
String
key
String

傳回

適用於