System::Runtime::InteropServices::Marshal::PtrToStringAuto metodo

Marshal::PtrToStringAuto(IntPtr) method

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

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

ReturnValue

Una stringa gestita.

Vedi anche

Marshal::PtrToStringAuto(IntPtr, int) method

Crea una String gestita da una stringa non gestita.

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

ReturnValue

Una stringa gestita.

Vedi anche