Class MethodIdAttribute
Specifies the method id for the interface method which this attribute is declared on.
Inheritance
System.Object
MethodIdAttribute
Namespace: Orleans.CodeGeneration
Assembly: Orleans.Core.Abstractions.dll
Syntax
public sealed class MethodIdAttribute : Attribute
Remarks
Method ids must be unique for all methods in a given interface. This attribute is only applicable for interface method declarations, not for method definitions on classes.
Constructors
| Improve this Doc View SourceMethodIdAttribute(Int32)
Specifies the method id for the interface method which this attribute is declared on.
Declaration
public MethodIdAttribute(int methodId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | methodId | The method id. |
Remarks
Method ids must be unique for all methods in a given interface. This attribute is only valid only on interface method declarations, not on method definitions.
Properties
| Improve this Doc View SourceMethodId
Gets the method id for the interface method this attribute is declared on.
Declaration
public int MethodId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |