Export (0) Print
Expand All

Marshal.PtrToStringAuto Method

Allocates a managed String and copies a specified number of characters from an unmanaged string into it.

Overload List

Allocates a managed String and copies all characters up to the first null character from a string stored in unmanaged memory into it.

[Visual Basic] Overloads Public Shared Function PtrToStringAuto(IntPtr) As String
[C#] public static string PtrToStringAuto(IntPtr);
[C++] public: static String* PtrToStringAuto(IntPtr);
[JScript] public static function PtrToStringAuto(IntPtr) : String;

Copies a specified number of characters from a string stored in unmanaged memory to a managed String.

[Visual Basic] Overloads Public Shared Function PtrToStringAuto(IntPtr, Integer) As String
[C#] public static string PtrToStringAuto(IntPtr, int);
[C++] public: static String* PtrToStringAuto(IntPtr, int);
[JScript] public static function PtrToStringAuto(IntPtr, int) : String;

See Also

Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace

Show:
© 2014 Microsoft