GCHandleExtensions.GetAddressOfStringData Metodo

Definizione

Importante

Questa API non è conforme a CLS.

Recupera l'indirizzo dei dati stringa in handle.

public:
[System::Runtime::CompilerServices::Extension]
 static char* GetAddressOfStringData(System::Runtime::InteropServices::PinnedGCHandle<System::String ^> handle);
[System.CLSCompliant(false)]
public static char* GetAddressOfStringData(this System.Runtime.InteropServices.PinnedGCHandle<string> handle);
[<System.CLSCompliant(false)>]
static member GetAddressOfStringData : System.Runtime.InteropServices.PinnedGCHandle<string> -> nativeptr<char>

Parametri

handle
PinnedGCHandle<String>

Handle da cui recuperare il puntatore.

Valori restituiti

Char*

Indirizzo del 0° carattere dell'oggetto aggiunto Stringo null se l'handle non punta ad alcun oggetto.

Attributi

Eccezioni

L'handle non viene inizializzato o è già eliminato.

Si applica a