WindowsRuntimeMarshal Class

.NET Framework (current version)
 

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

Provides helper methods for marshaling data between the .NET Framework and the Windows Runtime.

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

System.Object
  System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMarshal

public static class WindowsRuntimeMarshal

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddEventHandler<T>(Func<T, EventRegistrationToken>, Action<EventRegistrationToken>, T)

This API supports the product infrastructure and is not intended to be used directly from your code. Adds the specified event handler to a Windows Runtime event.

System_CAPS_pubmethodSystem_CAPS_staticFreeHString(IntPtr)

This API supports the product infrastructure and is not intended to be used directly from your code. Frees the specified Windows RuntimeHSTRING.

System_CAPS_pubmethodSystem_CAPS_staticGetActivationFactory(Type)

This API supports the product infrastructure and is not intended to be used directly from your code. Returns an object that implements the activation factory interface for the specified Windows Runtime type.

System_CAPS_pubmethodSystem_CAPS_staticPtrToStringHString(IntPtr)

This API supports the product infrastructure and is not intended to be used directly from your code. Returns a managed string that contains a copy of the specified Windows RuntimeHSTRING.

System_CAPS_pubmethodSystem_CAPS_staticRemoveAllEventHandlers(Action<EventRegistrationToken>)

This API supports the product infrastructure and is not intended to be used directly from your code. Removes all the event handlers that can be removed by using the specified method.

System_CAPS_pubmethodSystem_CAPS_staticRemoveEventHandler<T>(Action<EventRegistrationToken>, T)

This API supports the product infrastructure and is not intended to be used directly from your code. Removes the specified event handler from a Windows Runtime event.

System_CAPS_pubmethodSystem_CAPS_staticStringToHString(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Allocates a Windows RuntimeHSTRING and copies the specified managed string to it.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: