Język

GCHandleExtensions.GetAddressOfArrayData<T> Metoda

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Pobiera adres danych tablicy w pliku handle.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static T* GetAddressOfArrayData(System::Runtime::InteropServices::PinnedGCHandle<cli::array <T> ^> handle);
[System.CLSCompliant(false)]
public static T* GetAddressOfArrayData<T>(this System.Runtime.InteropServices.PinnedGCHandle<T[]> handle);
[<System.CLSCompliant(false)>]
static member GetAddressOfArrayData : System.Runtime.InteropServices.PinnedGCHandle<'T[]> -> nativeptr<'T>

Parametry typu

T

Parametry

handle
PinnedGCHandle<T[]>

Dojście do pobrania wskaźnika z.

Zwraca

T*

Adres elementu tablicy 0 przypiętej tablicy lub null jeśli uchwyt nie wskazuje żadnego obiektu.

Atrybuty

Wyjątki

Dojście nie zostało zainicjowane lub zostało już usunięte.

Dotyczy