Redigera

Dela via


GrainTypeAttribute Class

Definition

Specifies the grain type of the grain class which it is attached to.

[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
Inheritance
GrainTypeAttribute
Attributes
Implements

Constructors

GrainTypeAttribute(String)

Initializes a new instance of the GrainTypeAttribute class.

Methods

GetGrainType(IServiceProvider, Type)

Gets the GrainType for the attached Type.

Applies to