WindowsRuntimeMarshal Class

Definition

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

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

public ref class WindowsRuntimeMarshal abstract sealed
public static class WindowsRuntimeMarshal
type WindowsRuntimeMarshal = class
Public Class WindowsRuntimeMarshal
Inheritance
WindowsRuntimeMarshal

Methods

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

FreeHString(IntPtr)

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

Frees the specified Windows RuntimeHSTRING.

GetActivationFactory(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.

PtrToStringHString(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.

RemoveAllEventHandlers(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.

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

StringToHString(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.

Applies to