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
Assemblies:   System.Runtime.InteropServices.WindowsRuntime (in System.Runtime.InteropServices.WindowsRuntime.dll)
  mscorlib (in mscorlib.dll)

public static class WindowsRuntimeMarshal

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.3

.NET for Windows Store apps

Supported in: Windows 8

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8

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