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 Library。For additional information about TYPEDESC, see the MSDN Library.

當原生程式碼中的 COM 方法傳回 HRESULT 時, common language runtime 會擲回例外狀況。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.

適用於