System.Runtime.InteropServices.WindowsRuntime 命名空间

包含支持在托管代码和 Windows 运行时之间进行互操作的类,以及支持使用托管代码创建 Windows 运行时类型的类。 Contains classes that support interoperation between managed code and the Windows Runtime, and that enable the creation of Windows Runtime types with managed code.

AsyncInfo

提供工厂方法,用于构造与 Windows 运行时异步动作和操作兼容的托管任务的表示形式。Provides factory methods to construct representations of managed tasks that are compatible with Windows Runtime asynchronous actions and operations.

DefaultInterfaceAttribute

指定托管 Windows 运行时类的默认接口。Specifies the default interface of a managed Windows Runtime class.

DesignerNamespaceResolveEventArgs

DesignerNamespaceResolve 事件提供数据。Provides data for the DesignerNamespaceResolve event.

EventRegistrationTokenTable<T>

存储委托与事件标记之间的映射,以支持在托管代码中实现 Windows 运行时事件。Stores mappings between delegates and event tokens, to support the implementation of a Windows Runtime event in managed code.

InterfaceImplementedInVersionAttribute

指定首次实现指定接口的目标类型版本。Specifies the version of the target type that first implemented the specified interface.

NamespaceResolveEventArgs

ReflectionOnlyNamespaceResolve 事件提供数据。Provides data for the ReflectionOnlyNamespaceResolve event.

ReadOnlyArrayAttribute

当应用于 Windows 运行时组件中的数组参数时,指定传递到该参数的数组的内容仅用于输入。When applied to an array parameter in a Windows Runtime 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.

ReturnValueNameAttribute

指定 Windows 运行时组件中方法的返回值名称。Specifies the name of the return value of a method in a Windows Runtime component.

WindowsRuntimeBuffer

提供 Windows 运行时 IBuffer 接口 (Windows.Storage.Streams.IBuffer) 及其他全部所需接口的实现。Provides an implementation of the Windows Runtime IBuffer interface (Windows.Storage.Streams.IBuffer), and all additional required interfaces.

WindowsRuntimeBufferExtensions

提供对 Windows 运行时缓冲区(Windows.Storage.Streams.IBuffer 接口)执行操作的扩展方法。Provides extension methods for operating on Windows Runtime buffers (Windows.Storage.Streams.IBuffer interface).

WindowsRuntimeMarshal

提供用于在 .NET Framework 与 Windows 运行时之间封送数据的帮助程序方法。Provides helper methods for marshaling data between the .NET Framework and the Windows Runtime.

WindowsRuntimeMetadata

提供事件,用于解析仅反射类型请求,用于 Windows 元数据文件提供的类型,以及执行解析的方法。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

当应用于 Windows 运行时组件中的数组参数时,指定传递到该参数的数组的内容仅用于输出。When applied to an array parameter in a Windows Runtime 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.

结构

EventRegistrationToken

在将事件处理程序添加到 Windows 运行时事件中时,返回的标记。A token that is returned when an event handler is added to a Windows Runtime event. 该标记用于以后从事件中删除事件处理程序。The token is used to remove the event handler from the event at a later time.

接口

IActivationFactory

启用 Windows 运行时将激活的类。Enables classes to be activated by the Windows Runtime.