PointerArrayMarshaller<T,TUnmanagedElement> Sınıf

Tanım

Önemli

Bu API, CLS uyumlu değildir.

İşaretçi dizisi için bir marshaller'i temsil eder.

generic <typename T, typename TUnmanagedElement>
 where T : value class where TUnmanagedElement : value classpublic ref class PointerArrayMarshaller 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.PointerArrayMarshaller<,>))]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder*[]), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.PointerArrayMarshaller<,>+ManagedToUnmanagedIn))]
public static class PointerArrayMarshaller<T,TUnmanagedElement> where T : struct 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.PointerArrayMarshaller<,>))>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder*[]), System.Runtime.InteropServices.Marshalling.MarshalMode.ManagedToUnmanagedIn, typeof(System.Runtime.InteropServices.Marshalling.PointerArrayMarshaller<,>+ManagedToUnmanagedIn))>]
type PointerArrayMarshaller<'T, 'UnmanagedElement (requires 'T : struct and 'UnmanagedElement : struct)> = class
Public Class PointerArrayMarshaller(Of T, TUnmanagedElement)

Tür Parametreleri

T

Dizi öğesi işaretçi türü.

TUnmanagedElement

Öğe işaretçi türü için yönetilmeyen tür.

Devralma
PointerArrayMarshaller<T,TUnmanagedElement>
Öznitelikler

Yöntemler

Name Description
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.

Şunlara uygulanır