System::Runtime::InteropServices::Marshal::StringToHGlobalAuto-methode

Marshal::StringToHGlobalAuto method

Kopieert de inhoud van een opgegeven string naar niet-beheerd geheugen, waarbij geconverteerd wordt naar ANSI-indeling indien nodig.

static IntPtr System::Runtime::InteropServices::Marshal::StringToHGlobalAuto(const String &s)
ParameterTypeBeschrijving
sconst String&Een string die gekopieerd moet worden.

ReturnValue

Het adres, in niet-beheerd geheugen.

Zie ook