語言

UCOMITypeInfo.GetVarDesc(Int32, IntPtr) 方法

定義

擷取 VARDESC 描述指定變數的結構。

public:
 void GetVarDesc(int index, [Runtime::InteropServices::Out] IntPtr % ppVarDesc);
public void GetVarDesc(int index, out IntPtr ppVarDesc);
abstract member GetVarDesc : int * nativeint -> unit
Public Sub GetVarDesc (index As Integer, ByRef ppVarDesc As IntPtr)

參數

index
Int32

要回傳變數描述的索引。

ppVarDesc
IntPtr

nativeint

成功返回時,會有一個描述指定變數的參考 VARDESC 。

備註

的 ppVarDesc 值可透過 PtrToStructure存取。

欲了解更多資訊 ITypeInfo::GetVarDesc,請參閱MSDN圖書館。

適用於