INVOKEKIND Enum

Definition

指定如何通过 IDispatch::Invoke 来调用函数。Specifies how to invoke a function by IDispatch::Invoke.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum class INVOKEKIND
[System.Flags]
public enum INVOKEKIND
[System.Flags]
[System.Serializable]
public enum INVOKEKIND
type INVOKEKIND = 
Public Enum INVOKEKIND
Inheritance
INVOKEKIND
Attributes

Fields

INVOKE_FUNC 1

使用常规函数调用语法调用该成员。The member is called using a normal function invocation syntax.

INVOKE_PROPERTYGET 2

使用常规属性访问语法来调用该函数。The function is invoked using a normal property access syntax.

INVOKE_PROPERTYPUT 4

使用属性值赋值语法调用该函数。The function is invoked using a property value assignment syntax.

INVOKE_PROPERTYPUTREF 8

使用属性引用赋值语法调用该函数。The function is invoked using a property reference assignment syntax.

Remarks

有关 INVOKEKIND的其他信息,请参阅 MSDN Library。For additional information about INVOKEKIND, see the MSDN Library.

当本机代码中的 COM 方法返回 HRESULT 时,公共语言运行时将引发异常。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 有关更多信息,请参见 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

Applies to