Export (0) Print
Expand All

WindowsRuntimeMarshal Class

.NET Framework 4.5

This API supports the .NET Framework 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.

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

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

public ref class WindowsRuntimeMarshal abstract sealed

The WindowsRuntimeMarshal type exposes the following members.

  NameDescription
Public methodStatic memberSupported in .NET for Windows Store appsAddEventHandler<T>Infrastructure. Adds the specified event handler to a Windows Runtime event.
Public methodStatic memberSupported in .NET for Windows Store appsFreeHStringFrees the specified Windows Runtime HSTRING.
Public methodStatic memberSupported in .NET for Windows Store appsGetActivationFactoryInfrastructure. Returns an object that implements the activation factory interface for the specified Windows Runtime type.
Public methodStatic memberSupported in .NET for Windows Store appsPtrToStringHStringReturns a managed string that contains a copy of the specified Windows Runtime HSTRING.
Public methodStatic memberSupported in .NET for Windows Store appsRemoveAllEventHandlersInfrastructure. Removes all the event handlers that can be removed by using the specified method.
Public methodStatic memberSupported in .NET for Windows Store appsRemoveEventHandler<T>Infrastructure. Removes the specified event handler from a Windows Runtime event.
Public methodStatic memberSupported in .NET for Windows Store appsStringToHStringAllocates a Windows Runtime HSTRING and copies the specified managed string to it.
Top

.NET Framework

Supported in: 4.5

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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