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 程式庫。

適用於