Partager via


HostEventMethodType Enum

Definition

Indicates the type of the method in the host application that corresponds to a method in an add-in.

public enum class HostEventMethodType
public enum HostEventMethodType
type HostEventMethodType = 
Public Enum HostEventMethodType
Inheritance
HostEventMethodType

Fields

Name Value Description
Unspecified 0

Indicates that the type of the host event accessor method is not specified. The runtime should determine the type by examining the prefix of the event accessor method name, for example, "add_" or "remove_".

Add 1

Indicates that the host method is used to add an event handler to a delegate.

Remove 2

Indicates that the host method is used to remove an event handler from a delegate.

Raise 3

Indicates that the host method raises the event.

Other 4

Indicates that the host event accessor method type is unspecified, but the runtime should not attempt to determine the type from the method name.

Applies to