Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WindowsRuntimeMarshal.FreeHString Method

.NET Framework 4.6 and 4.5

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Frees the specified Windows Runtime HSTRING.

Namespace:  System.Runtime.InteropServices.WindowsRuntime
Assemblies:   System.Runtime.InteropServices.WindowsRuntime (in System.Runtime.InteropServices.WindowsRuntime.dll)
  mscorlib (in mscorlib.dll)

public static void FreeHString(
	IntPtr ptr
)

Parameters

ptr
Type: System.IntPtr

The address of the HSTRING to free.

ExceptionCondition
PlatformNotSupportedException

The Windows Runtime is not supported on the current version of the operating system.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

  • SecurityCriticalAttribute 

    requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Show:
© 2015 Microsoft