Redigera

Dela via


DefaultInvokeMethodNameAttribute Class

Definition

Applied to proxy base types and to attribute types used on invokable interface methods to specify the base type for the invokable object which represents a method call.

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

Constructors

DefaultInvokeMethodNameAttribute(Type, String)

Initializes a new instance of the DefaultInvokeMethodNameAttribute class.

Properties

MethodName

Gets the name of the method on the proxy base type to call when methods are invoked.

ReturnType

Gets the interface method return type which this attribute applies to.

Applies to