Contains built-in types that are compatible with the Windows Runtime.
using namespace Platform;
The Platform namespace inherits from the IUnknown interface but does not have additional members.
Attributes
The Platform namespace contains, attributes, classes, enumerations, interfaces, and structures. Platform also contains and sub-namespaces.
|
Attribute |
Description |
|---|---|
|
Flags |
Indicates that an enumeration can be treated as a bit field; that is, a set of flags. |
|
MTAThread |
Indicates that the threading model for an application is multi-threaded apartment (MTA). |
|
STAThread |
Indicates that the threading model for an application is single-threaded apartment (STA). |
Classes
The Platform namespace has the following classes.
|
Class |
Description |
|---|---|
|
Raised when access is denied to a resource or feature. |
|
|
Represents a non-agile object as an agile object. |
|
|
Represents a one-dimensional, modifiable array. |
|
|
Represents an array whose initialization is optimized to minimize copying operations. |
|
|
Used to declare a boxed type that encapsulates a value type such as Windows::Foundation::DateTime or int64 when that type is passed across the application binary interface (ABI) or stored in a variable of type Platform::Object^. |
|
|
Thrown when methods of a collection iterator or a collection view are called after the parent collection has changed, invalidating the results of the method. |
|
|
Thrown when a COM class has not been registered. |
|
|
Represents the exception that is thrown when an unrecognized value is returned from a COM method call. |
|
|
Represents the signature of a callback function. |
|
|
The object has disconnected from its clients. |
|
|
Represents errors that occur during application execution. The base class for exceptions. |
|
|
Thrown when the operation has failed. It is the equivalent of the E_FAIL HRESULT. |
|
|
Thrown when one of the arguments provided to a method is not valid. |
|
|
Thrown in cases of invalid casting or explicit conversion. |
|
|
Indicates that the threading model for an application is multi-threaded apartment (MTA). |
|
|
Thrown if an interface method has not been implemented on the class. |
|
|
Thrown when there is an attempt to dereference a null object reference. |
|
|
A base class that provides common behavior. |
|
|
Thrown when an operation is performed on a disposed object. |
|
|
Thrown when an operation is aborted. |
|
|
Thrown when an operation attempts to access data outside the valid range. |
|
|
Thrown when there's insufficient memory to complete the operation. |
|
|
Indicates that the threading model for an application is single-threaded apartment (STA). |
|
|
A sequential collection of Unicode characters that is used to represent text. |
|
|
Identifies a built-in type by a category enumeration. |
|
|
The base class for instances of value types. |
|
|
Represents a one-dimensional write-only array. |
|
|
Thrown when a thread calls via an interface pointer which is for a proxy object that does not belong to the thread's apartment. |
Interface implementations
The Platform namespace defines the following interfaces.
|
Interface |
Description |
|---|---|
|
Used to pass value types to functions whose parameters are typed as Platform::Object^. |
|
|
Interface used to pass arrays of value types to functions whose parameters are typed as Platform::Array. |
|
|
Used to release unmanaged resources. |
Enumerations
The Platform namespace has the following enumerations.
|
Interface |
Description |
|---|---|
|
An enumeration that is used as a parameter of the delegate constructor. It determines whether the callback is to be marshalled to the originating thread or to the caller thread. |
|
|
Specifies a numeric category that represents a built-in type. |
Structures
The Platform namespace has the following structures.
|
Structure |
Description |
|---|---|
|
Represents a named constant. |
|
|
Represents a GUID. |
|
|
A signed pointer whose size is appropriate for the platform (32-bit or 64-bit). |
|
|
An unsigned data type used to represent the size of an object. |
|
|
An unsigned pointer whose size is appropriate for the platform (32-bit or 64-bit). |