共用方式為


GrainReference.Cast<TGrainInterface> 方法

定義

建立新的細微性參考,以實作指定的細微性介面。

public virtual TGrainInterface Cast<TGrainInterface> () where TGrainInterface : Orleans.Runtime.IAddressable;
abstract member Cast : unit -> 'GrainInterface (requires 'GrainInterface :> Orleans.Runtime.IAddressable)
override this.Cast : unit -> 'GrainInterface (requires 'GrainInterface :> Orleans.Runtime.IAddressable)
Public Overridable Function Cast(Of TGrainInterface As IAddressable) () As TGrainInterface

類型參數

TGrainInterface

細微性介面類別型。

傳回

TGrainInterface

實作指定介面類別型的新細微性參考。

適用於