Windows Dev Center

Windows.Foundation namespace

Enables fundamental Windows Runtime functionality, including managing asynchronous operations and accessing property stores. This namespace also defines common value types that represent Uniform Resource Identifiers (URIs), dates and times, 2-D measurements, and other basic values.

Members

The Windows.Foundation namespace has these types of members:

Classes

ClassDescription
Deferral Stores a DeferralCompletedHandler to be invoked upon completion of the deferral and manipulates the state of the deferral.
MemoryBuffer Represents a reference counted memory buffer.
PropertyValue Represents a value in a property store (such as a PropertySet instance).
Uri Defines an object that represents a Uniform Resource Identifier (URI) value and parses it into components. The Uri object is used by many other Windows Runtime APIs that are not necessarily confined to web browser scenarios.
WwwFormUrlDecoder Parses a URL query string, and exposes the results as a read-only vector (list) of name-value pairs from the query string.
WwwFormUrlDecoderEntry Represents a name-value pair in a URL query string. Use the IWwwFormUrlDecoderEntry interface instead; see Remarks.

 

Delegates

The Windows.Foundation namespace has these delegates.

DelegateDescription
AsyncActionCompletedHandler Represents a method that handles the completed event of an asynchronous action.
AsyncActionProgressHandler Represents a method that handles progress update events of an asynchronous action that provides progress updates.
AsyncActionWithProgressCompletedHandler Represents a method that handles the completed event of an asynchronous action that provides progress updates.
AsyncOperationCompletedHandler Represents a method that handles the completed event of an asynchronous operation.
AsyncOperationProgressHandler Represents a method that handles progress update events of an asynchronous operation that provides progress updates.
AsyncOperationWithProgressCompletedHandler Represents a method that handles the completed event of an asynchronous operation that provides progress updates.
DeferralCompletedHandler Represents a method that handles the completed event of a deferred action.
EventHandler Represents a method that handles general events.
TypedEventHandler Represents a method that handles general events.

 

Enumerations

The Windows.Foundation namespace has these enumerations.

EnumerationDescription
AsyncStatus Specifies the status of an asynchronous operation.
PropertyType Specifies property value types.

 

Interfaces

The Windows.Foundation namespace defines these interfaces.

InterfaceDescription
IAsyncAction Represents an asynchronous action. This is the return type for many Windows Runtime asynchronous methods that don't have a result object, and don't report ongoing progress.
IAsyncActionWithProgress Represents an asynchronous action that can report progress updates to callers. This is the return type for all Windows Runtime asynchronous methods that don't have a result object, but do report progress to callback listeners.
IAsyncInfo Supports asynchronous actions and operations. IAsyncInfo is a base interface for IAsyncAction, IAsyncActionWithProgress<TProgress>, IAsyncOperation<TResult> and IAsyncOperationWithProgress<TResult,TProgress>, each of which support combinations of return type and progress for an asynchronous method.
IAsyncOperation Represents an asynchronous operation, which returns a result upon completion. This is the return type for many Windows Runtime asynchronous methods that have results but don't report progress.
IAsyncOperationWithProgress Represents an asynchronous operation that can report progress updates to callers. This is the return type for many Windows Runtime asynchronous methods that have results and also report progress.
IClosable Defines a method to release allocated resources.
IGetActivationFactory Defines the implementation for a type that retrieves activation factories.
IMemoryBuffer Represents a reference counted memory buffer.
IMemoryBufferReference Represents a reference to an IMemoryBuffer object.
IPropertyValue Represents a value in a property store. You can't implement this interface, see Remarks.
IReference Enables arbitrary enumerations, structures, and delegate types to be used as property values.
IReferenceArray 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.

 

Structures

The Windows.Foundation namespace has these structures.

StructureDescription
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 a Windows Runtime error.
Point Represents x- and y-coordinate values that define a point in a two-dimensional plane.
Rect Contains number values that represent the location and size of a rectangle.
Size Represents number values that specify a height and width.
TimeSpan Represents a time interval as a signed 64-bit integer value.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

See also

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

 

 

Show:
© 2015 Microsoft