ArrayMarshaller<T,TUnmanagedElement> Osztály

Definíció

Fontos

Ez az API nem CLS-kompatibilis.

Tömbökhöz tartozó rendezőt jelöl.

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ípusparaméterek

T

A tömbelem típusa.

TUnmanagedElement

Az elemtípus nem felügyelt típusa.

Öröklődés
ArrayMarshaller<T,TUnmanagedElement>
Attribútumok

Metódusok

Name Description
AllocateContainerForManagedElements(TUnmanagedElement*, Int32)

Memóriát foglal le a tömb felügyelt ábrázolása számára.

AllocateContainerForUnmanagedElements(T[], Int32)

Memóriát foglal le a tömb nem felügyelt ábrázolása számára.

Free(TUnmanagedElement*)

Felszabadítja a nem felügyelt tömb memóriáját.

GetManagedValuesDestination(T[])

Lekéri a tömb felügyelt elemeinek célhelyét.

GetManagedValuesSource(T[])

Lekéri a tömb felügyelt elemeinek forrását.

GetUnmanagedValuesDestination(TUnmanagedElement*, Int32)

Lekéri a tömb nem felügyelt elemeinek célhelyét.

GetUnmanagedValuesSource(TUnmanagedElement*, Int32)

Lekéri a tömb nem felügyelt elemeinek forrását.

A következőre érvényes: