Share via


GrainTypeAttribute 類別

定義

指定其所附加之粒紋類別的粒紋類型。

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
public sealed class GrainTypeAttribute : Attribute, Orleans.Metadata.IGrainTypeProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
type GrainTypeAttribute = class
    inherit Attribute
    interface IGrainTypeProviderAttribute
Public NotInheritable Class GrainTypeAttribute
Inherits Attribute
Implements IGrainTypeProviderAttribute
繼承
GrainTypeAttribute
屬性
實作

建構函式

GrainTypeAttribute(String)

初始化 GrainTypeAttribute 類別的新執行個體。

方法

GetGrainType(IServiceProvider, Type)

GrainType取得附加 Type 的 。

適用於