Export (0) Print
Expand All

Marshal.PtrToStringUni Method

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

Overload List

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

Supported by the .NET Compact Framework.

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

Copies a specified number of characters from a Unicode string stored in native heap to a managed String.

Supported by the .NET Compact Framework.

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

See Also

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

Show:
© 2014 Microsoft