HostEventAttribute Class

Definition

Relates an event in a proxy type to an event in the host application.

public ref class HostEventAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class HostEventAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type HostEventAttribute = class
    inherit Attribute
Public NotInheritable Class HostEventAttribute
Inherits Attribute
Inheritance
HostEventAttribute
Attributes

Constructors

HostEventAttribute(Int32)

Initializes a new instance of the HostEventAttribute class.

Properties

DispId

Gets the dispatch ID of the COM event for which the event marked with this HostEventAttribute is a proxy.

HostEventMethodType

Gets or sets a value that specifies the kind of event accessor method the host application will use for this event in the proxy type.

Applies to