DISPPARAMS 结构

定义

包含由 IDispatch::Invoke 传递到方法或属性的参数。Contains the arguments passed to a method or property by IDispatch::Invoke.

public value class DISPPARAMS
public struct DISPPARAMS
type DISPPARAMS = struct
Public Structure DISPPARAMS
继承
DISPPARAMS

注解

有关 DISPPARAMS的其他信息,请参阅 Windows API 文档中的DISPPARMS 结构For additional information about DISPPARAMS, see DISPPARMS structure in the Windows API documentation.

当本机代码中的 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.

字段

cArgs

表示参数的计数。Represents the count of arguments.

cNamedArgs

表示命名参数的计数。Represents the count of named arguments.

rgdispidNamedArgs

表示命名参数的调度 ID。Represents the dispatch IDs of named arguments.

rgvarg

表示对参数数组的引用。Represents a reference to the array of arguments.

适用于