Windows.​Foundation Windows.​Foundation 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 Deferral Deferral

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

MemoryBuffer MemoryBuffer MemoryBuffer

Represents a reference counted memory buffer.

PropertyValue PropertyValue PropertyValue

Represents a value in a property store (such as a PropertySet instance).

Uri Uri 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 WwwFormUrlDecoder 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 WwwFormUrlDecoderEntry WwwFormUrlDecoderEntry

Represents a name-value pair in a URL query string. Use the IWwwFormUrlDecoderEntry interface instead; see Remarks.

Structs

DateTime DateTime 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++ Similar to FILETIME but with important differences. See Remarks.

EventRegistrationToken EventRegistrationToken EventRegistrationToken

Represents a reference to a delegate that receives change notifications.

.NET When programming with .NET, this type is hidden. Advanced-scenario developers should use System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken.

HResult HResult 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 Point Point

Represents x- and y-coordinate values that define a point in a two-dimensional plane.

Rect Rect Rect

Contains number values that represent the location and size of a rectangle.

Size Size Size

Represents number values that specify a height and width.

TimeSpan TimeSpan 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.

Interfaces

IAsyncAction IAsyncAction 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<TProgress> IAsyncActionWithProgress<TProgress> 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 IAsyncInfo IAsyncInfo

Supports asynchronous actions and operations. IAsyncInfo is a base interface for IAsyncAction, IAsyncActionWithProgress;, IAsyncOperation; and IAsyncOperationWithProgress;, each of which support combinations of return type and progress for an asynchronous method.

IAsyncOperation<TResult> IAsyncOperation<TResult> IAsyncOperation<TResult>

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<TResult, TProgress> IAsyncOperationWithProgress<TResult, TProgress> 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 IClosable IClosable

Defines a method to release allocated resources.

.NET This interface appears as System.IDisposable.

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

IGetActivationFactory IGetActivationFactory IGetActivationFactory

Defines the implementation for a type that retrieves activation factories.

IMemoryBuffer IMemoryBuffer IMemoryBuffer

Represents a reference counted memory buffer.

IMemoryBufferReference IMemoryBufferReference IMemoryBufferReference

Represents a reference to an IMemoryBuffer object.

IPropertyValue IPropertyValue IPropertyValue

Represents a value in a property store. You can't implement this interface, see Remarks.

IReference<T> IReference<T> 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> IReferenceArray<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 IStringable IStringable

Provides a way to represent the current object as a string.

IWwwFormUrlDecoderEntry IWwwFormUrlDecoderEntry IWwwFormUrlDecoderEntry

Represents a name-value pair in a URL query string.

Enums

AsyncStatus AsyncStatus AsyncStatus

Specifies the status of an asynchronous operation.

PropertyType PropertyType PropertyType

Specifies property value types.

Delegates

AsyncActionCompletedHandler AsyncActionCompletedHandler AsyncActionCompletedHandler

Represents a method that handles the completed event of an asynchronous action.

AsyncActionProgressHandler AsyncActionProgressHandler AsyncActionProgressHandler

Represents a method that handles progress update events of an asynchronous action that provides progress updates.

AsyncActionWithProgressCompletedHandler AsyncActionWithProgressCompletedHandler AsyncActionWithProgressCompletedHandler

Represents a method that handles the completed event of an asynchronous action that provides progress updates.

AsyncOperationCompletedHandler AsyncOperationCompletedHandler AsyncOperationCompletedHandler

Represents a method that handles the completed event of an asynchronous operation.

AsyncOperationProgressHandler AsyncOperationProgressHandler AsyncOperationProgressHandler

Represents a method that handles progress update events of an asynchronous operation that provides progress updates.

AsyncOperationWithProgressCompletedHandler AsyncOperationWithProgressCompletedHandler AsyncOperationWithProgressCompletedHandler

Represents a method that handles the completed event of an asynchronous operation that provides progress updates.

DeferralCompletedHandler DeferralCompletedHandler DeferralCompletedHandler

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

EventHandler EventHandler EventHandler

Represents a method that handles general events.

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

TypedEventHandler TypedEventHandler TypedEventHandler

Represents a method that handles general events.