次の方法で共有


UCOMITypeInfo.GetVarDesc メソッド

指定した変数を記述している VARDESC 構造体を取得します。

Sub GetVarDesc( _
   ByVal index As Integer, _   <Out()> ByRef ppVarDesc As IntPtr _)
[C#]
void GetVarDesc(
   intindex,   out IntPtrppVarDesc);
[C++]
void GetVarDesc(
   intindex,   [   Out] IntPtr* ppVarDesc);
[JScript]
function GetVarDesc(
   index : int,ppVarDesc : IntPtr);

パラメータ

  • index
    返される変数の説明のインデックス。
  • ppVarDesc
    正常に返された場合は、指定した変数を記述している VARDESC への参照。

解説

ppVarDesc の値には、 PtrToStructure を使用してアクセスできます。

ITypeInfo::GetVarDesc の詳細については、MSDN ライブラリを参照してください。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

UCOMITypeInfo インターフェイス | UCOMITypeInfo メンバ | System.Runtime.InteropServices 名前空間