Copies a specified number of characters from a string, stored in native heap, to a managed String object. Widens each ASCII character to UNICODE, if required. (If current platform is UNICODE, calls to PtrToStringUni else calls PtrToStringAnsi)
[Visual Basic] Overloads Public Shared Function PtrToStringAuto( _ ByVal ptr As Integer, _ ByVal len As Integer _ ) As String [C#] public static string PtrToStringAuto( int ptr, int len ); [C++] public: static String* PtrToStringAuto( int ptr, int len ); [JScript] public static function PtrToStringAuto( ptr : int, len : int ) : String;
Managed String object, holding a copy of the native string.
Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace | Marshal.PtrToStringAuto Overload List