ArrayMarshaller<T,TUnmanagedElement> Kelas
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.
Penting
API ini bukan kompatibel CLS.
Mewakili marshaller untuk array.
generic <typename T, typename TUnmanagedElement>
where TUnmanagedElement : value classpublic ref class ArrayMarshaller abstract sealed
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Marshalling.ContiguousCollectionMarshaller]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder[]), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.ArrayMarshaller<,>))]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder[]), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.ArrayMarshaller<,>+ManagedToUnmanagedIn))]
public static class ArrayMarshaller<T,TUnmanagedElement> where TUnmanagedElement : struct
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.Marshalling.ContiguousCollectionMarshaller>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder[]), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.ArrayMarshaller<,>))>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder[]), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.ArrayMarshaller<,>+ManagedToUnmanagedIn))>]
type ArrayMarshaller<'T, 'UnmanagedElement (requires 'UnmanagedElement : struct)> = class
Public Class ArrayMarshaller(Of T, TUnmanagedElement)
Jenis parameter
- T
Jenis elemen array.
- TUnmanagedElement
Jenis tidak terkelola untuk jenis elemen.
- Warisan
-
ArrayMarshaller<T,TUnmanagedElement>
- Atribut
Metode
| Nama | Deskripsi |
|---|---|
| AllocateContainerForManagedElements(TUnmanagedElement*, Int32) |
Mengalokasikan memori untuk representasi array terkelola. |
| AllocateContainerForUnmanagedElements(T[], Int32) |
Mengalokasikan memori untuk representasi array yang tidak dikelola. |
| Free(TUnmanagedElement*) |
Membebaskan memori untuk array yang tidak dikelola. |
| GetManagedValuesDestination(T[]) |
Mendapatkan tujuan untuk elemen terkelola dalam array. |
| GetManagedValuesSource(T[]) |
Mendapatkan sumber untuk elemen terkelola dalam array. |
| GetUnmanagedValuesDestination(TUnmanagedElement*, Int32) |
Mendapatkan tujuan untuk elemen yang tidak dikelola dalam array. |
| GetUnmanagedValuesSource(TUnmanagedElement*, Int32) |
Mendapatkan sumber untuk elemen yang tidak dikelola dalam array. |