System.Runtime.InteropServices.WindowsRuntime Namespace

The System.Runtime.InteropServices.WindowsRuntime namespace contains classes that support interoperation between managed code and the wrt, and that enable the creation of wrt types with managed code.

Remarks

 

Classes

TypeReason
DefaultInterfaceAttribute

Specifies the default interface of a managed wrt class.

DesignerNamespaceResolveEventArgs

Provides data for the WindowsRuntimeMetadata.DesignerNamespaceResolve event.

EventRegistrationToken

A token that is returned when an event handler is added to a wrt event. The token is used to remove the event handler from the event at a later time.

EventRegistrationTokenTable<T>

Stores mappings between delegates and event tokens, to support the implementation of a wrt event in managed code.

IActivationFactory

Enables classes to be activated by the wrt.

InterfaceImplementedInVersionAttribute

Specifies the version of the target type that first implemented the specified interface.

NamespaceResolveEventArgs

Provides data for the WindowsRuntimeMetadata.ReflectionOnlyNamespaceResolve event.

ReadOnlyArrayAttribute

When applied to an array parameter in a wrt component, specifies that the contents of the array that is passed to that parameter are used only for input. The caller expects the array to be unchanged by the call. See the Remarks section for important information about callers that are written using managed code.

ReturnValueNameAttribute

Specifies the name of the return value of a method in a wrt component.

WindowsRuntimeMarshal

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

WindowsRuntimeMetadata

Provides an event for resolving reflection-only type requests for types that are provided by Windows Metadata files, and methods for performing the resolution.

WriteOnlyArrayAttribute

When applied to an array parameter in a wrt component, specifies that the contents of an array that is passed to that parameter are used only for output. The caller does not guarantee that the contents are initialized, and the called method should not read the contents. See the Remarks section for important information about callers that are written using managed code.