Méthode System::Runtime::InteropServices::Marshal::PtrToStringUTF8

Marshal::PtrToStringUTF8(IntPtr) method

Crée une String gérée à partir d’une chaîne UTF8 terminée par zéro non gérée.

static String System::Runtime::InteropServices::Marshal::PtrToStringUTF8(IntPtr ptr)
ParamètreTypeDescription
ptrIntPtrPointeur vers la chaîne non gérée.

ReturnValue

Une chaîne gérée.

Voir aussi

Marshal::PtrToStringUTF8(IntPtr, int) method

Crée une String gérée à partir d’une chaîne UTF8 non gérée.

static String System::Runtime::InteropServices::Marshal::PtrToStringUTF8(IntPtr ptr, int length)
ParamètreTypeDescription
ptrIntPtrPointeur vers la chaîne non gérée.
longueurintLongueur de la chaîne non gérée.

ReturnValue

Une chaîne gérée.

Voir aussi