Metodo System::Runtime::InteropServices::Marshal::PtrToStringUTF8

Marshal::PtrToStringUTF8(IntPtr) method

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

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

ReturnValue

Una stringa gestita.

Vedi anche

Marshal::PtrToStringUTF8(IntPtr, int) method

Crea una String gestita da una stringa UTF8 non gestita.

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

ReturnValue

Una stringa gestita.

Vedi anche