System::Runtime::InteropServices::Marshal::PtrToStringUni méthode

Marshal::PtrToStringUni(IntPtr) method

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

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

ReturnValue

Une chaîne gérée.

Voir aussi

Marshal::PtrToStringUni(IntPtr, int) method

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

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

ReturnValue

Une chaîne gérée.

Voir aussi