Marshal.GetNativeVariantForObject Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
GetNativeVariantForObject(Object, IntPtr) |
Kedaluwarsa.
Mengonversi objek menjadi VARIAN COM. |
GetNativeVariantForObject<T>(T, IntPtr) |
Kedaluwarsa.
Mengonversi objek dari jenis tertentu menjadi VARIAN COM. |
GetNativeVariantForObject(Object, IntPtr)
- Sumber:
- Marshal.NoCom.cs
- Sumber:
- Marshal.NoCom.cs
- Sumber:
- Marshal.NoCom.cs
Perhatian
GetNativeVariantForObject(Object, IntPtr) may be unavailable in future releases.
Mengonversi objek menjadi VARIAN COM.
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)
Parameter
- obj
- Object
Objek untuk mendapatkan VARIAN COM.
- pDstNativeVariant
-
IntPtr
nativeint
Pointer untuk menerima VARIAN yang sesuai dengan obj
parameter .
- Atribut
Pengecualian
Parameter obj
adalah instans dari jenis generik.
Keterangan
Parameter pDstNativeVariant
harus menunjuk ke memori yang cukup untuk menyimpan VARIAN yang dihasilkan. Selain itu, implementasi metode ini memanggil fungsi VariantInit pada memori mentah yang dirujuk pDstNativeVariant
parameter.
Berlaku untuk
GetNativeVariantForObject<T>(T, IntPtr)
- Sumber:
- Marshal.NoCom.cs
- Sumber:
- Marshal.NoCom.cs
- Sumber:
- Marshal.NoCom.cs
Perhatian
GetNativeVariantForObject<T>(T, IntPtr) may be unavailable in future releases.
Mengonversi objek dari jenis tertentu menjadi VARIAN COM.
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)
Jenis parameter
- T
Jenis objek yang akan dikonversi.
Parameter
- obj
- T
Objek untuk mendapatkan VARIAN COM.
- pDstNativeVariant
-
IntPtr
nativeint
Pointer untuk menerima VARIAN yang sesuai dengan obj
parameter .
- Atribut
Keterangan
Parameter pDstNativeVariant
harus menunjuk ke memori yang cukup untuk menyimpan VARIAN yang dihasilkan. Selain itu, implementasi metode ini memanggil fungsi VariantInit pada memori mentah yang dirujuk pDstNativeVariant
parameter.