GCHandleExtensions.GetAddressOfStringData Methode

Definitie

Belangrijk

Deze API is niet CLS-conform.

Haalt het adres van de tekenreeksgegevens op 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>

Parameters

handle
PinnedGCHandle<String>

De greep waaruit de aanwijzer moet worden opgehaald.

Retouren

Char*

Het adres van het 0e teken van het vastgemaakte Stringteken of null als de greep niet naar een object verwijst.

Kenmerken

Uitzonderingen

De ingang wordt niet geïnitialiseerd of is al verwijderd.

Van toepassing op