ArrayMarshaller<T,TUnmanagedElement> Sınıf
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Önemli
Bu API, CLS uyumlu değildir.
Diziler için bir marshaller temsil eder.
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)
Tür Parametreleri
- T
Dizi öğesi türü.
- TUnmanagedElement
Öğe türü için yönetilmeyen tür.
- Devralma
-
ArrayMarshaller<T,TUnmanagedElement>
- Öznitelikler
Yöntemler
AllocateContainerForManagedElements(TUnmanagedElement*, Int32) |
Dizinin yönetilen gösterimi için bellek ayırır. |
AllocateContainerForUnmanagedElements(T[], Int32) |
Dizinin yönetilmeyen gösterimi için bellek ayırır. |
Free(TUnmanagedElement*) |
Yönetilmeyen dizi için belleği serbest bırakır. |
GetManagedValuesDestination(T[]) |
Dizideki yönetilen öğeler için bir hedef alır. |
GetManagedValuesSource(T[]) |
Dizideki yönetilen öğeler için bir kaynak alır. |
GetUnmanagedValuesDestination(TUnmanagedElement*, Int32) |
Dizideki yönetilmeyen öğeler için bir hedef alır. |
GetUnmanagedValuesSource(TUnmanagedElement*, Int32) |
Dizideki yönetilmeyen öğeler için bir kaynak alır. |