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 Identifier (URI), dates and times, 2-D measurements, and other basic values.

Classes

Deferral

Stores a DeferralCompletedHandler to be invoked upon completion of the deferral and manipulates the state of the deferral.

GuidHelper

A class containing static helper methods for working with the Guid type.

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.

.NET When programming with .NET, this type is hidden and developers should use System.Uri. See Remarks.

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.

Structs

DateTime

Represents an instant in time, typically expressed as a date and time of day.

JavaScript This type appears as the Date object.

.NET When programming with .NET, this type is hidden, and developers should use the System.DateTimeOffset structure.

C++/CX Similar to FILETIME but with important differences. See Remarks.

C++/WinRT This type is a specialization of std::chrono::time_point. See Remarks.

EventRegistrationToken

Represents a reference to a delegate that receives change notifications.

.NET When programming with .NET, this type is hidden. For advanced scenarios, use System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken instead.

C++/WinRT In the C++/WinRT language projection, this type appears as winrt::event_token.

HResult

Represents a Windows Runtime error.

.NET When programming with .NET, this type is hidden, and exceptions appear as System.Exception or specific derived exception types. See Remarks.

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.

.NET When programming with .NET, this structure is hidden, and developers should use the System.TimeSpan type.

C++/WinRT This type is a specialization of std::chrono::duration.

TimeSpan is used in the Adaptive streaming sample app.

Interfaces

IAsyncAction

Represents an asynchronous action. This is the return type for many Windows Runtime (WinRT) asynchronous methods that don't have a result object, and don't report ongoing progress.

IAsyncActionWithProgress<TProgress>

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

Represents an asynchronous operation, which returns a result upon completion. This is the return type for many Windows Runtime (WinRT) asynchronous methods that have results but don't report progress.

IAsyncOperationWithProgress<TResult,TProgress>

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.

.NET This interface appears as System.IDisposable.

C++/CX This interface appears as Platform::IDisposable.

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

Enables arbitrary enumerations, structures, and delegate types to be used as property values.

.NET This interface appears as Nullable<T>.

C++/CX This interface appears as Platform::IBox<T>

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.

Enums

AsyncStatus

Specifies the status of an asynchronous operation.

PropertyType

Specifies property value types.

Delegates

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.

DeferralCompletedHandler

Represents a method that handles the completed event of a deferred action.

EventHandler<T>

Represents a method that handles general events.

.NET This type appears as System.EventHandler<TEventArgs>.

TypedEventHandler<TSender,TResult>

Represents a method that handles general events.

See also