共用方式為


GrainReferenceActivator.CreateReference(GrainId, GrainInterfaceType) 方法

定義

建立指向指定之粒紋識別碼的粒紋參考,並實作指定的粒紋介面類別型。

public Orleans.Runtime.GrainReference CreateReference (Orleans.Runtime.GrainId grainId, Orleans.Runtime.GrainInterfaceType interfaceType);
member this.CreateReference : Orleans.Runtime.GrainId * Orleans.Runtime.GrainInterfaceType -> Orleans.Runtime.GrainReference
Public Function CreateReference (grainId As GrainId, interfaceType As GrainInterfaceType) As GrainReference

參數

grainId
GrainId

粒紋識別碼。

interfaceType
GrainInterfaceType

粒紋介面類別型。

傳回

新的粒紋參考。

適用於