Metodo System::Runtime::InteropServices::Marshal::PtrToStringAnsi

Marshal::PtrToStringAnsi(IntPtr) method

Crea una String gestita da una stringa UTF8 terminata a zero non gestita.

static String System::Runtime::InteropServices::Marshal::PtrToStringAnsi(IntPtr ptr)
ParametroTipoDescrizione
ptrIntPtrPuntatore alla stringa non gestita.

ReturnValue

Una stringa gestita.

Vedi anche

Marshal::PtrToStringAnsi(IntPtr, int) method

Crea una String gestita da una stringa UTF8 non gestita.

static String System::Runtime::InteropServices::Marshal::PtrToStringAnsi(IntPtr ptr, int length)
ParametroTipoDescrizione
ptrIntPtrPuntatore alla stringa non gestita.
lengthintLunghezza della stringa non gestita.

ReturnValue

Una stringa gestita.

Vedi anche