TYPEDESC TYPEDESC TYPEDESC TYPEDESC Struct

定义

描述变量的类型、函数的返回类型或函数参数的类型。Describes the type of a variable, return type of a function, or the type of a function parameter.

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

注解

有关其他信息TYPEDESC,请参阅 MSDN 库。For additional information about TYPEDESC, 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.

字段

lpValue lpValue lpValue lpValue

如果变量为 VT_SAFEARRAYVT_PTR,则 lpValue 字段包含指向指定元素类型的 TYPEDESC 的指针。If the variable is VT_SAFEARRAY or VT_PTR, the lpValue field contains a pointer to a TYPEDESC that specifies the element type.

vt vt vt vt

指示由此 TYPEDESC 描述的项的 Variant 类型。Indicates the variant type for the item described by this TYPEDESC.

适用于