共用方式為


GrainClassMap.TryGetGrainClass(GrainType, Type) 方法

定義

傳回對應至所提供粒紋類型的粒紋類別類型。

public bool TryGetGrainClass(Orleans.Runtime.GrainType grainType, out Type grainClass);
member this.TryGetGrainClass : Orleans.Runtime.GrainType * Type -> bool
Public Function TryGetGrainClass (grainType As GrainType, ByRef grainClass As Type) As Boolean

參數

grainType
GrainType

粒紋的類型。

grainClass
Type

粒紋類別。

傳回

true 如果找到對應的粒紋類別,則為 , false 否則為 。

適用於