信息
您所需的主题如下所示。但此主题未包含在此库中。

Windows.Foundation Namespace

启用基本 Windows 运行时功能,包括管理异步操作、访问属性存储,及与图像和统一资源标识符 (URI) 一起使用。

成员

Windows.Foundation命名空间 具有这些类型的成员:

Windows.Foundation命名空间 具有这些类。

说明
PropertyValue Represents a value in a property store.
Uri Parses Uniform Resource Identifier (URI).
WwwFormUrlDecoder Parses a URL query string.
WwwFormUrlDecoderEntry Represents a name-value pair in a URL query string.

 

委托

Windows.Foundation命名空间 具有这些委托。

委托说明
AsyncActionCompletedHandler Represents a method that handles the completed event of an asynchronous action.
AsyncActionProgressHandler<TProgress> Represents a method that handles progress update events of an asynchronous action that provides progress updates.
AsyncActionWithProgressCompletedHandler<TProgress> Represents a method that handles the completed event of an asynchronous action that provides progress updates.
AsyncOperationCompletedHandler<TResult> Represents a method that handles the completed event of an asynchronous operation.
AsyncOperationProgressHandler<TResult, TProgress> Represents a method that handles progress update events of an asynchronous operation that provides progress updates.
AsyncOperationWithProgressCompletedHandler<TResult, TProgress> Represents a method that handles the completed event of an asynchronous operation that provides progress updates.
EventHandler<T> Represents a method that handles general events.
TypedEventHandler<TSender, TResult> Represents a method that handles general events.

 

枚举

Windows.Foundation命名空间 具有这些枚举。

Enumeration说明
AsyncStatus Specifies the status of an asynchronous operation.
PropertyType Specifies property value types.

 

接口

Windows.Foundation命名空间 定义这些接口。

接口说明
IAsyncAction Represents an asynchronous action.
IAsyncActionWithProgress<TProgress> Represents an asynchronous action that includes progress updates.
IAsyncInfo Supports asynchronous actions and operations.
IAsyncOperation<TResult> Represents an asynchronous operation.
IAsyncOperationWithProgress<TResult, TProgress> Represents an asynchronous operation that includes progress updates.
IClosable Defines a method to release allocated resources.
IGetActivationFactory Defines the implementation for a type that retrieves activation factories.
IPropertyValue Represents a value in a property store. You can't implement this interface, see Remarks.
IReference<T> Enables arbitrary enumerations, structures, and delegate types to be used as property values.
IReferenceArray<T> Enables arbitrary enumerations, structures, and delegate types to be used as an array of property values. You can't implement this interface, see Remarks.
IStringable Provides a way to represent the current object as a string.
IWwwFormUrlDecoderEntry Represents a name-value pair in a URL query string.

 

结构

Windows.Foundation命名空间 具有这些结构。

结构说明
DateTime Represents an instant in time, typically expressed as a date and time of day.
EventRegistrationToken Represents a reference to a delegate that receives change notifications.
HResult Represents an error or warning.
Point Represents an ordered pair of x- and y-coordinates that define a point in a two-dimensional plane.
Rect Contains a set of four floating-point numbers that represent the location and size of a rectangle.
Size Represents an ordered pair of floating-point numbers that specify a height and width.
TimeSpan Represents a time interval as a signed 64-bit integer value.

 

要求

最低支持客户端

Windows 8

最低支持服务器

Windows Server 2012

最低支持电话

Windows Phone 8

命名空间

Windows.Foundation
Windows::Foundation [C++]

元数据

Windows.winmd

另请参见

Windows.Foundation.Collections
Windows.Foundation.Diagnostics
Windows.Foundation.Metadata

 

 

显示: