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 static 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

Produkt Versjoner
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
UWP 10.0