Marshal.GetNativeVariantForObject メソッド

定義

オーバーロード

GetNativeVariantForObject(Object, IntPtr)
古い.

オブジェクトを COM VARIANT に変換します。

GetNativeVariantForObject<T>(T, IntPtr)
古い.

指定した型のオブジェクトを COM VARIANT に変換します。

GetNativeVariantForObject(Object, IntPtr)

ソース:
Marshal.NoCom.cs
ソース:
Marshal.NoCom.cs
ソース:
Marshal.NoCom.cs

注意事項

GetNativeVariantForObject(Object, IntPtr) may be unavailable in future releases.

オブジェクトを COM VARIANT に変換します。

public:
 static void GetNativeVariantForObject(System::Object ^ obj, IntPtr pDstNativeVariant);
[System.Obsolete("GetNativeVariantForObject(Object, IntPtr) may be unavailable in future releases.")]
[System.Security.SecurityCritical]
public static void GetNativeVariantForObject (object obj, IntPtr pDstNativeVariant);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static void GetNativeVariantForObject (object? obj, IntPtr pDstNativeVariant);
[System.Obsolete("GetNativeVariantForObject(Object, IntPtr) may be unavailable in future releases.")]
public static void GetNativeVariantForObject (object obj, IntPtr pDstNativeVariant);
public static void GetNativeVariantForObject (object? obj, IntPtr pDstNativeVariant);
public static void GetNativeVariantForObject (object obj, IntPtr pDstNativeVariant);
[System.Security.SecurityCritical]
public static void GetNativeVariantForObject (object obj, IntPtr pDstNativeVariant);
[<System.Obsolete("GetNativeVariantForObject(Object, IntPtr) may be unavailable in future releases.")>]
[<System.Security.SecurityCritical>]
static member GetNativeVariantForObject : obj * nativeint -> unit
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member GetNativeVariantForObject : obj * nativeint -> unit
[<System.Obsolete("GetNativeVariantForObject(Object, IntPtr) may be unavailable in future releases.")>]
static member GetNativeVariantForObject : obj * nativeint -> unit
static member GetNativeVariantForObject : obj * nativeint -> unit
[<System.Security.SecurityCritical>]
static member GetNativeVariantForObject : obj * nativeint -> unit
Public Shared Sub GetNativeVariantForObject (obj As Object, pDstNativeVariant As IntPtr)

パラメーター

obj
Object

COM VARIANT の取得対象となるオブジェクト。

pDstNativeVariant
IntPtr

nativeint

obj パラメーターに対応する VARIANT を受け取るポインター。

属性

例外

obj パラメーターがジェネリック型のインスタンスです。

注釈

パラメーターは、 pDstNativeVariant 結果の VARIANT を格納するのに十分なメモリを指している必要があります。 また、このメソッドの実装では、 パラメーターが指す生メモリで VariantInit 関数を pDstNativeVariant 呼び出します。

適用対象

GetNativeVariantForObject<T>(T, IntPtr)

ソース:
Marshal.NoCom.cs
ソース:
Marshal.NoCom.cs
ソース:
Marshal.NoCom.cs

注意事項

GetNativeVariantForObject<T>(T, IntPtr) may be unavailable in future releases.

指定した型のオブジェクトを COM VARIANT に変換します。

public:
generic <typename T>
 static void GetNativeVariantForObject(T obj, IntPtr pDstNativeVariant);
[System.Obsolete("GetNativeVariantForObject<T>(T, IntPtr) may be unavailable in future releases.")]
[System.Security.SecurityCritical]
public static void GetNativeVariantForObject<T> (T obj, IntPtr pDstNativeVariant);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static void GetNativeVariantForObject<T> (T? obj, IntPtr pDstNativeVariant);
[System.Obsolete("GetNativeVariantForObject<T>(T, IntPtr) may be unavailable in future releases.")]
public static void GetNativeVariantForObject<T> (T obj, IntPtr pDstNativeVariant);
public static void GetNativeVariantForObject<T> (T obj, IntPtr pDstNativeVariant);
[System.Security.SecurityCritical]
public static void GetNativeVariantForObject<T> (T obj, IntPtr pDstNativeVariant);
[<System.Obsolete("GetNativeVariantForObject<T>(T, IntPtr) may be unavailable in future releases.")>]
[<System.Security.SecurityCritical>]
static member GetNativeVariantForObject : 'T * nativeint -> unit
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member GetNativeVariantForObject : 'T * nativeint -> unit
[<System.Obsolete("GetNativeVariantForObject<T>(T, IntPtr) may be unavailable in future releases.")>]
static member GetNativeVariantForObject : 'T * nativeint -> unit
static member GetNativeVariantForObject : 'T * nativeint -> unit
[<System.Security.SecurityCritical>]
static member GetNativeVariantForObject : 'T * nativeint -> unit
Public Shared Sub GetNativeVariantForObject(Of T) (obj As T, pDstNativeVariant As IntPtr)

型パラメーター

T

変換対象のオブジェクトの型。

パラメーター

obj
T

COM VARIANT の取得対象となるオブジェクト。

pDstNativeVariant
IntPtr

nativeint

obj パラメーターに対応する VARIANT を受け取るポインター。

属性

注釈

パラメーターは、 pDstNativeVariant 結果の VARIANT を格納するのに十分なメモリを指している必要があります。 また、このメソッドの実装では、 パラメーターが指す生メモリで VariantInit 関数を pDstNativeVariant 呼び出します。

適用対象