VARDESC 結構

定義

描述變數、常數或資料成員。Describes a variable, constant, or data member.

public value class VARDESC
public struct VARDESC
type VARDESC = struct
Public Structure VARDESC
繼承
VARDESC

備註

如需 VARDESC的詳細資訊,請參閱 MSDN Library。For additional information about VARDESC, 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.

欄位

desc

包含變數的相關資訊。Contains information about a variable.

elemdescVar

含有變數型別。Contains the variable type.

lpstrSchema

這個欄位保留作未來使用。This field is reserved for future use.

memid

表示變數的成員 ID。Indicates the member ID of a variable.

varkind

定義如何封送處理 (Marshal) 變數。Defines how to marshal a variable.

wVarFlags

定義變數的屬性。Defines the properties of a variable.

適用於