Modifier

Partager via


MethodIdAttribute Class

Definition

Specifies the method id for the interface method which this attribute is declared on.

[System.AttributeUsage(System.AttributeTargets.Method)]
public sealed class MethodIdAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type MethodIdAttribute = class
    inherit Attribute
Public NotInheritable Class MethodIdAttribute
Inherits Attribute
Inheritance
MethodIdAttribute
Attributes

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

MethodIdAttribute(Int32)

Specifies the method id for the interface method which this attribute is declared on.

Properties

MethodId

Gets the method id for the interface method this attribute is declared on.

Applies to