InTheHand
Enables you to detect whether your app is in design mode in a visual designer.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets a value that indicates whether the process is running in design mode.
True if the process is running in design mode; otherwise false.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Provides information about a package.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the package for the current app.
Gets the description of the package.
Gets the display name of the package.
Gets the package identity of the current package.
The package identity.
Gets the date the application package was installed on the user's phone.
Gets the location of the installed package.
This folder is read-only except for Windows Desktop applications.
Indicates whether the package is installed in development mode.
A Boolean value that indicates whether the package is installed in development mode.
TRUE indicates that the package is installed in development mode; otherwise FALSE.
Gets the logo of the package.
Gets the publisher display name of the package.
Android and iOS don't provide a way to query the publisher at runtime.
Provides package identification info, such as name, version, and publisher.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the processor architecture for which the package was created.
Gets the name of the package.
The package name.
Gets the name of the package.
The package name.
Gets the value of the ProductID attribute associated with this application package.
The value of the ProductID attribute associated with this application package.
Gets the publisher of the package.
Not supported on iOS or Android.
Gets the package version info.
The package version information.
Provides utility methods for use with HTML-formatted data.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Converts HTML-formatted data to a string that contains the text content extracted from the HTML.
A String containing HTML-formatted data.
A String of text content.
Helper class for .
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- TizenTizen 3.0
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Converts a Unix time expressed as the number of seconds that have elapsed since 1970-01-01T00:00:00Z to a value.
A Unix time, expressed as the number of seconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC).
For Unix times before this date, its value is negative.
A date and time value that represents the same moment in time as the Unix time.
Converts a Unix time expressed as the number of milliseconds that have elapsed since 1970-01-01T00:00:00Z to a value.
A Unix time, expressed as the number of milliseconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC).
For Unix times before this date, its value is negative.
A date and time value that represents the same moment in time as the Unix time.
Returns the number of seconds that have elapsed since 1970-01-01T00:00:00Z.
The DateTimeOffset value.
The number of seconds that have elapsed since 1970-01-01T00:00:00Z.
Unix time represents the number of seconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC).
It does not take leap seconds into account.
This method first converts the current instance to UTC before returning its Unix time.
For date and time values before 1970-01-01T00:00:00Z, this method returns a negative value.
Returns the number of milliseconds that have elapsed since 1970-01-01T00:00:00.000Z.
The DateTimeOffset value.
The number of milliseconds that have elapsed since 1970-01-01T00:00:00.000Z.
Unix time represents the number of seconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC).
It does not take leap seconds into account.
This method returns the number of milliseconds in Unix time.
This method first converts the current instance to UTC before returning the number of milliseconds in its Unix time.
For date and time values before 1970-01-01T00:00:00Z, this method returns a negative value.
Gives applications access to information about the environment in which they are running.
The only supported property of this class is , which is used to determine if an application is running on an actual Windows Phone device or on the device emulator on a PC.
PlatformVersion supported
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
Gets the type of device on which the application is running.
Use this property to determine if your application is running on an actual device or on the device emulator.
Defines the device type values used by the property.
The device type is an actual device.
The device type is a device emulator.
The basic information to describe a geographic position.
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
Converts a Pontoon BasicGeoposition to a CoreLocation CLLocationCoordinate2D.
Converts a CoreLocation CLLocationCoordinate2D to a Pontoon BasicGeoposition.
The altitude of the geographic position in meters.
The latitude of the geographic position.
The valid range of latitude values is from -90.0 to 90.0 degrees.
The longitude of the geographic position.
This can be any value.
For values less than or equal to-180.0 or values greater than 180.0, the value may be wrapped and stored appropriately before it is used.
For example, a longitude of 183.0 degrees would become -177.0 degrees.
Provides extension methods for .
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Returns the distance between the latitude and longitude coordinates that are specified by this and another specified .
The for the location to calculate the distance to.
The distance between the two coordinates, in meters.
Contains the information for identifying a geographic location.
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
The accuracy of the location in meters.
The accuracy in meters.
The Windows Location Provider and the Windows Phone Location Services accuracy depends on the location data available.
For example,iIf Wifi is available, data is accurate to within 50 meters.
If Wifi is not available, the data could be accurate to within 10 miles or larger.
A GNSS device can provide data accurate to within a few meters.
However, its accuracy can vary if the GNSS sensor is obscured by buildings, trees, or cloud cover.
GNSS data may not be available at all within a building.
The accuracy of the altitude, in meters.
The accuracy of the altitude.
It is optional for a location provider to set this property.
If the property is not provided, the value will be NULL.
The Windows Location Provider and the Windows Phone Location Services do not set this property.
The current heading in degrees relative to true north.
The current heading in degrees relative to true north.
It is optional for a location provider to set this property.
If the property is not provided, the value will be NULL.
The Windows Location Provider does not set this property.
The location of the Geocoordinate.
The location of the Geocoordinate.
Gets the source used to obtain a Geocoordinate.
The source used to obtain a Geocoordinate.
Gets the time at which the associated Geocoordinate position was calculated.
The time at which the associated Geocoordinate position was calculated.
When this property is not available, the value will be null.
The timestamp returned by this property depends on how the location was obtained and may be completely unrelated to the system time on the device.
For example, if the position is obtained from the Global Navigation Satellite System (GNSS) the timestamp would be obtained from the satellites.
If the position was is obtained from Secure User Plane Location (SUPL), the timestamp would be obtained from SUPL servers.
This means that the timestamps obtained from these services will be precise and, most importantly, consistent across all devices regardless of whether the system time on the devices is set correctly.
The speed in meters per second.
The speed in meters per second.
It is optional for a location provider to set this property.
If the property is not provided, the value will be NULL.
The Windows Location Provider does not set this property.
The system time at which the location was determined.
The system time at which the location was determined.
Provides extension methods for .
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Returns the distance between the latitude and longitude coordinates that are specified by this and another specified .
The for the location to calculate the distance to.
The distance between the two coordinates, in meters.
Provides access to the current geographic location.
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Initializes a new Geolocator object.
The accuracy level at which the Geolocator provides location updates.
The status that indicates the ability of the Geolocator to provide location updates.
Gets and sets the distance of movement, in meters, relative to the coordinate from the last PositionChanged event, that is required for the Geolocator to raise a PositionChanged event.
The requested minimum time interval between location updates, in milliseconds.
If your application requires updates infrequently, set this value so that you only receive location updates when needed.
Starts an asynchronous operation to retrieve the current location of the device.
Raised when the ability of the Geolocator to provide updated location changes.
Raised when the location is updated.
Describes a geographic point.
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Create a geographic point object for the given position.
Create a geographic point object for the given position.
The position of a geographic point.
Represents a location that may contain latitude and longitude data or venue data.
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
The latitude and longitude associated with a geographic location.
Indicates the requested accuracy level for the location data that the application uses.
Optimize for power, performance, and other cost considerations.
Deliver the most accurate report possible.
This includes using services that might charge money, or consuming higher levels of battery power or connection bandwidth.
An accuracy level of High may degrade system performance and should be used only when necessary.
Provides data for the event.
The location data associated with the event.
Indicates the source used to obtain a .
The position was obtained from cellular network data.
The position was obtained from satellite data.
The position was obtained from Wi-Fi network data.
The position was obtained from an IP address.
The position was obtained from an unknown source.
The position was obtained from the user's manually-set location.
The position was obtained via the Consentless Location feature and was therefore intentionally made inaccurate to a degree.
Indicates the ability of the object to provide location data.
Location data is available.
Location services is initializing.
This is the status if a GPS is the source of location data and the GPS receiver does not yet have the required number of satellites in view to obtain an accurate position.
No location data is available from any source.
Location settings are turned off.
This status indicates that the user has not granted the application permission to access location.
An operation to retrieve location has not yet been initialized.
LocationStatus will have this value if the application has not yet called or registered an event handler for the event.
LocationStatus may also have this value if your app doesn’t have permission to access location.
Location services is not available on this version of Windows.
Provides information for the event.
The updated status of the object.
Provides information about the Operating System.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets an OperatingSystem object that contains the current platform identifier and version number.
Notifies listeners of dynamic changes to a map, such as when items are added or removed.
The type of the keys in the map.
The type of the values in the map.
Occurs when the map changes.
Represents the method that handles the changed event of an observable map.
The type of the keys in the map.
The type of the values in the map.
Provides data for the changed event of a map collection.
The type of the keys in the map.
Gets the type of change that occurred in the map.
Gets the key of the item that changed.
Represents a collection of key-value pairs, correlating several other collection interfaces.
Describes the action that causes a change to a collection.
The collection is changed.
An item is added to the collection.
An item is removed from the collection.
An item is changed in the collection.
Enables you to detect whether a specified member, type, or API contract is present so that you can safely make API calls across a variety of devices.
Returns true or false to indicate whether the API contract with the specified name and major version number is present.
The name of the API contract.
The major version number of the API contract.
True if the specified API contract is present; otherwise, false.
Returns true or false to indicate whether the API contract with the specified name and major and minor version number is present.
The name of the API contract.
The major version number of the API contract.
The minor version number of the API contract.
True if the specified API contract is present; otherwise, false.
Returns true or false to indicate whether a specified named constant is present for a specified enumeration.
The namespace-qualified name of the type.
The name of the constant.
True if the specified constant is present; otherwise, false.
Returns true or false to indicate whether a specified event is present for a specified type.
The namespace-qualified name of the type.
The name of the event.
True if the specified event is present for the type; otherwise, false.
Returns true or false to indicate whether a specified method is present for a specified type.
The namespace-qualified name of the type.
The name of the method.
True if the specified method is present for the type; otherwise, false.
Returns true or false to indicate whether a specified method overload with the specified number of input parameters is present for a specified type.
The namespace-qualified name of the type.
The name of the method.
The number of input parameters for the overload.
True if the specified method is present for the type; otherwise, false.
Returns true or false to indicate whether a specified property (writeable or read-only) is present for a specified type.
The namespace-qualified name of the type.
The name of the property.
True if the specified property is present for the type; otherwise, false.
Returns true or false to indicate whether a specified read-only property is present for a specified type.
The namespace-qualified name of the type.
The name of the property.
True if the specified property is present for the type; otherwise, false.
Returns true or false to indicate whether a specified writeable property is present for a specified type.
The namespace-qualified name of the type.
The name of the property.
True if the specified property is present for the type; otherwise, false.
Returns true or false to indicate whether a specified type is present.
The namespace-qualified name of the type.
True if the specified type is present; otherwise, false.
Represents x- and y-coordinate values that define a point in a two-dimensional plane.
The horizontal position of the point.
The vertical position of the point.
Contains number values that represent the location and size of a rectangle.
Initializes a Rect structure that has the specified x-coordinate, y-coordinate, width, and height.
The x-coordinate of the top-left corner of the rectangle.
The y-coordinate of the top-left corner of the rectangle.
The width of the rectangle.
The height of the rectangle.
The x-coordinate location of the left side of the rectangle.
The y-coordinate location of the top side of the rectangle.
A value that represents the Width of the rectangle.
A value that represents the Height of the rectangle.
Represents a method that handles general events.
The event source.
The event data. If there is no event data, this parameter will be null.
The event source.
The event data. If there is no event data, this parameter will be null.
Specifies the language-related preferences that the app can use and maintain.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
Gets the ranked list of current runtime language values preferred by the user.
A computed list of languages that merges the app's declared supported languages () with the user's ranked list of preferred languages.
Gets the app's declared list of supported languages.
The list of supported languages declared in the app's manifest.
Monitors and controls physical display information.
The class provides events to allow clients to monitor for changes in the display.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the current physical display information.
Gets the current orientation of a rectangular monitor.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the raw dots per inch (DPI) along the x axis of the display monitor.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the raw dots per inch (DPI) along the y axis of the display monitor.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets a value representing the number of raw (physical) pixels for each view (layout) pixel.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
Describes the orientation of a rectangular monitor.
No display orientation is specified.
Specifies that the monitor is oriented in landscape mode where the width of the display viewing area is greater than the height.
Specifies that the monitor rotated 90 degrees in the clockwise direction to orient the display in portrait mode where the height of the display viewing area is greater than the width.
Specifies that the monitor rotated another 90 degrees in the clockwise direction (to equal 180 degrees) to orient the display in landscape mode where the width of the display viewing area is greater than the height.
This landscape mode is flipped 180 degrees from the Landscape mode.
Specifies that the monitor rotated another 90 degrees in the clockwise direction (to equal 270 degrees) to orient the display in portrait mode where the height of the display viewing area is greater than the width.
This portrait mode is flipped 180 degrees from the Portrait mode.
Provides additional Math operations.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- TizenTizen 3.0
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Restricts a value to be within a specified range.
The value to clamp.
The minimum value.
If value is less than min, min will be returned.
The maximum value.
If value is greater than max, max will be returned.
Represents a network connection, which includes either the currently connected network or prior network connections.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the network connectivity level for this connection.
This value indicates what network resources, if any, are currently available.
Defines the level of connectivity currently available.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
No connectivity.
Local network access only.
Limited internet access.
This value indicates captive portal connectivity, where local access to a web portal is provided, but access to the Internet requires that specific credentials are provided via the portal.
This level of connectivity is generally encountered when using connections hosted in public locations (e.g. coffee shops and book stores).
Note This doesn't guarantee detection of a captive portal.
Windows Store apps should also test if the captive portal can be reached using a URL for the captive portal, or by attempting access to a public web site which will then redirect to the captive portal when Windows reports LocalAccess as the current NetworkConnectivityLevel.
Local and Internet access.
Provides access to network connection information for the local machine.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the connection profile associated with the internet connection currently used by the local machine.
The profile for the connection currently used to connect the machine to the Internet, or null if there is no connection profile with a suitable connection.
Occurs when the network status changes for a connection.
Represents the method that handles network status change notifications.
This method is called when any properties exposed by the object changes while the app is active.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Provides the app the ability to retrieve device information from the local device.
PlatformVersion supported
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
Creates an instance of an object that allows the caller app to retrieve device information from the local device.
Returns the friendly name of the local device.
Returns the identifier of the local device.
For Windows Phone (Silverlight) apps you must declare the ID_CAP_IDENTITY_DEVICE capability in your WMAppManifest.
Returns the operating system of the local device.
Returns the system manufacturer of the local device. Use this only if the SystemSku is empty.
Returns the system product name of the local device.
Provides access to the application data store.
Application data consists of settings that are local.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Provides access to the app data store associated with the app's app package.
Removes all application data from the local, roaming, and temporary app data stores.
Removes all application data from the specified app data store.
One of the enumeration values.
Gets the root folder in the local app data store.
Gets the application settings container in the local app data store.
The application settings container.
Gets the root folder in the roaming app data store.
Gets the application settings container in the local app data store.
The application settings container.
Gets the root folder in the temporary app data store.
Represents a container for app settings.
The methods and properties of this class support creating, deleting, enumerating, and traversing the container hierarchy.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- watchOSwatchOS 2.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Creates or opens the specified settings container in the current settings container.
The name of the container.
One of the enumeration values.
On iOS the name must be a value Shared App Group name and disposition must be Existing.
The settings container.
Gets the type (local or roaming) of the app data store that is associated with the current settings container.
Gets the name of the current settings container.
Gets an object that represents the settings in this settings container.
The settings map object.
Provides access to the settings in a settings container.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
Occurs when the map changes.
Adds an item to the .
The key of the item to add.
The item value to add.
Returns a value that indicates whether a specified key exists in the .
The key to check for in the .
true if an item with that key exists in the ; otherwise, false.
Gets an ICollection object containing the keys of the .
Removes a specific item from the .
The key of the item to remove.
true if the item was removed, otherwise false.
Returns a value that indicates whether a specified key exists in the .
If an item with that key exists, the item is retrieved as an out parameter.
The key to check for in the .
The item, if it exists.
Contains null if the item does not exist in the .
true if an item with that key exists in the ; otherwise, false.
Gets an object containing the values of the .
Gets or sets the element value at the specified key index.
The element value at the specified key index.
Adds a new key-value pair to the ApplicationDataContainerSettings.
The key-value pair to add.
Removes all related application settings.
Returns a value that indicates whether a specified key-value pair exists in the ApplicationDataContainerSettings.
The key-value pair to check for in the ApplicationDataContainerSettings.
Copies the elements of the collection to an array, starting at a particular array index.
The one-dimensional Array that is the destination of the elements copied from the collection.
The Array must have zero-based indexing.
The zero-based index in array at which copying begins.
Gets the number of elements contained in the collection.
Gets a value indicating whether the dictionary is read-only.
true if the dictionary is read-only; otherwise, false.
Removes a specific key-value pair from the .
The key-value pair to remove.
true if the item was removed, otherwise false.
Specifies options for creating application data containers or returning existing containers.
This enumeration is used by the method.
Always returns the specified container.
Creates the container if it does not exist.
Returns the specified container only if it already exists.
Raises an exception of type System.Exception if the specified container does not exist.
Provides access to the application data store.
Application data consists of settings that are local.
The data resides in the local application data store.
The data resides in the roaming application data store.
The data resides in the temporary application data store.
The data resides in the local cache for the application data store.
The data resides in the shared application data store.
Represents a file.
Provides information about the file and its content, and ways to manipulate them.
Automatically append a number to the base of the specified name if the file or folder already exists.
For example, if MyFile.txt already exists, then the new file is named MyFile(2).txt.
If MyFolder already exists, then the new folder is named MyFolder(2).
Replace the existing item if the file or folder already exists.
Raise an exception of type System.Exception if the file or folder already exists.
Methods that don't explicitly pass a value from the CreationCollisionOption enumeration use the FailIfExists value as the default when you try to create, rename, copy, or move a file or folder.
Return the existing item if the file or folder already exists.
Describes the attributes of a file or folder.
The item is normal.
That is, the item doesn't have any of the other values in the enumeration.
The item is read-only.
The item is a directory.
The item is archived.
The item is a temporary file.
Provides helper methods for reading and writing files that are represented by objects of type .
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Appends lines of text to the specified file.
The file that the lines are appended to.
The list of text strings to append as lines.
No object or value is returned when this method completes.
Appends lines of text to the specified file using the specified character encoding.
The file that the lines are appended to.
The list of text strings to append as lines.
The character encoding of the file.
No object or value is returned when this method completes.
Appends text to the specified file.
The file that the text is appended to.
The text to append.
No object or value is returned when this method completes.
Appends text to the specified file using the specified character encoding.
The file that the text is appended to.
The text to append.
The character encoding of the file.
No object or value is returned when this method completes.
Reads the contents of the specified file and returns lines of text.
The file to read.
When this method completes successfully, it returns the contents of the file as a list (type IVector) of lines of text.
Each line of text in the list is represented by a String object.
Reads the contents of the specified file using the specified character encoding and returns lines of text.
The file to read.
The character encoding of the file.
When this method completes successfully, it returns the contents of the file as a list (type IVector) of lines of text.
Each line of text in the list is represented by a String object.
Reads the contents of the specified file and returns text.
The file to read.
When this method completes successfully, it returns the contents of the file as a text string.
Reads the contents of the specified file using the specified character encoding and returns text.
The file to read.
The character encoding of the file.
When this method completes successfully, it returns the contents of the file as a text string.
Writes lines of text to the specified file.
The file that the lines are written to.
The list of text strings to append as lines.
No object or value is returned when this method completes.
Writes lines of text to the specified file using the specified character encoding.
The file that the lines are written to.
The list of text strings to append as lines.
The character encoding of the file.
No object or value is returned when this method completes.
Writes text to the specified file.
The file that the text is written to.
The text to write.
No object or value is returned when this method completes.
Writes text to the specified file using the specified character encoding.
The file that the text is written to.
The text to write.
The character encoding of the file.
No object or value is returned when this method completes.
Provides access to the basic properties, like the size of the item or the date the item was last modified, of the item (like a file or folder).
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the timestamp of the last time the file was modified.
Gets the size of the file in bytes.
Describes the purpose of the thumbnail to determine how to adjust the thumbnail image to retrieve.
To display previews of picture or video files.
To display previews of files (or other items) in a list.
To display a preview of any single item (like a file, folder, or file group).
Represents a file.
Provides information about the file and its contents, and ways to manipulate them.
Replaces the specified file with a copy of the current file.
The file to replace.
No object or value is returned when this method completes.
Creates a copy of the file in the specified folder.
Creates a copy of the file in the specified folder, using the desired name.
Moves the current file to the location of the specified file and replaces the specified file in that location.
Moves the current file to the specified folder.
Moves the current file to the specified folder and renames the file according to the desired name.
Gets the MIME type of the contents of the file.
The MIME type of the file contents.
For example, a music file might have the "audio/mpeg" MIME type.
Gets the type (file name extension) of the file.
Manipulates folders and their contents, and provides information about them.
Creates a new file in the current folder.
The desired name of the file to create.
Creates a new file in the current folder, and specifies what to do if a file with the same name already exists in the current folder.
The desired name of the file to create.
The enum value that determines what to do if the desiredName is the same as the name of an existing file in the current folder.
Creates a new folder in the current folder.
The desired name of the folder to create.
Creates a new folder in the current folder, and specifies what to do if a folder with the same name already exists in the current folder.
The desired name of the folder to create.
The enum value that determines what to do if the desiredName is the same as the name of an existing folder in the current folder.
Gets the specified file from the current folder.
The name (or path relative to the current folder) of the file to retrieve.
Gets the files from the current folder.
Gets the specified folder from the current folder.
The name of the child folder to retrieve.
Gets the folders in the current folder.
Gets the specified item from the .
The name of the item to retrieve.
Gets the items from the current folder.
Try to get a single file or sub-folder from the current folder by using the name of the item.
The name (or path relative to the current folder) of the file or sub-folder to try to retrieve.
When this method completes successfully, it returns the file or folder (type ).
Manipulates storage items (files and folders) and their contents, and provides information about them.
Deletes the current item.
Deletes the current item, optionally deleting it permanently.
Gets the basic properties of the current item (like a file or folder).
Determines whether the current IStorageItem matches the specified StorageItemTypes value.
The value to match against.
Gets the attributes of a storage item.
Gets the date and time when the current item was created.
Gets the name of the item including the file name extension if there is one.
Gets the full file-system path of the item, if the item has a path.
Gets the parent folder of the current storage item.
Indicates whether the current item is the same as the specified item.
The object that represents a storage item to compare against.
Returns true if the current storage item is the same as the specified storage item; otherwise false.
Provides access to common locations that contain user content.
This includes content from a user's local libraries (such as Documents, Pictures, Music, and Videos).
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the Camera Roll folder.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 8.1 or later
Gets the Documents library.
Gets the Music library.
Gets the Pictures library.
Gets the Videos library.
Specifies what to do if a file or folder with the specified name already exists in the current folder when you copy, move, or rename a file or folder.
Automatically append a number to the base of the specified name if the file or folder already exists.
For example, if MyFile.txt already exists, then the new file is named MyFile(2).txt.
If MyFolder already exists, then the new folder is named MyFolder(2).
Replace the existing item if the file or folder already exists.
Raise an exception of type System.Exception if the file or folder already exists.
Methods that don't explicitly pass a value from the NameCollisionOption enumeration use the FailIfExists value as the default when you try to create, rename, copy, or move a file or folder.
Provides helper methods for reading and writing a file using the absolute path or URI of the file.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Appends lines of text to the file at the specified path or URI.
The path or URI of the file that the lines are appended to.
The list of text strings to append as lines.
No object or value is returned when this method completes.
Appends lines of text to the file at the specified path or URI using the specified character encoding.
The path or URI of the file that the lines are appended to.
The list of text strings to append as lines.
The character encoding of the file.
No object or value is returned when this method completes.
Appends text to the file at the specified path or URI.
The path of the file that the text is appended to.
The text to append.
No object or value is returned when this method completes.
Appends text to the file at the specified path or URI using the specified character encoding.
The path of the file that the text is appended to.
The text to append.
The character encoding of the file.
No object or value is returned when this method completes.
Reads the contents of the file at the specified path or URI and returns lines of text.
The path of the file to read.
When this method completes successfully, it returns the contents of the file as a list (type IVector) of lines of text.
Each line of text in the list is represented by a String object.
Reads the contents of the file at the specified path or URI using the specified character encoding and returns lines of text.
The path of the file to read.
The character encoding of the file.
When this method completes successfully, it returns the contents of the file as a list (type IVector) of lines of text.
Each line of text in the list is represented by a String object.
Reads the contents of the file at the specified path or URI and returns text.
The path of the file to read.
When this method completes successfully, it returns the contents of the file as a text string.
Reads the contents of the file at the specified path or URI using the specified character encoding and returns text.
The path of the file to read.
The character encoding of the file.
When this method completes successfully, it returns the contents of the file as a text string.
Writes lines of text to the file at the specified path or URI.
The path of the file that the lines are written to.
The list of text strings to append as lines.
No object or value is returned when this method completes.
Writes lines of text to the file at the specified path or URI using the specified character encoding.
The path of the file that the lines are written to.
The list of text strings to append as lines.
The character encoding of the file.
No object or value is returned when this method completes.
Writes text to the file at the specified path or URI.
The path of the file that the text is written to.
The text to write.
No object or value is returned when this method completes.
Writes text to the file at the specified path or URI using the specified character encoding.
The path of the file that the text is written to.
The text to write.
The character encoding of the file.
No object or value is returned when this method completes.
Specifies whether a deleted item is moved to the Recycle Bin or permanently deleted.
Specifies the default behavior.
Permanently deletes the item.
The item is not moved to the Recycle Bin.
Represents a file.
Provides information about the file and its content, and ways to manipulate them.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets a StorageFile object to represent the file at the specified path.
The path of the file to get a StorageFile to represent.
If your path uses slashes, make sure you use backslashes(\).
Forward slashes(/) are not accepted by this method.
When this method completes, it returns the file as a StorageFile.
Replaces the specified file with a copy of the current file.
Creates a copy of the file in the specified folder.
The destination folder where the copy of the file is created.
Creates a copy of the file in the specified folder and renames the copy.
The destination folder where the copy of the file is created.
The new name for the copy of the file created in the destinationFolder.
Deletes the current file.
Deletes the current file, optionally deleting the item permanently.
Gets the basic properties of the current file.
Retrieves an adjusted thumbnail image for the file, determined by the purpose of the thumbnail.
The enum value that describes the purpose of the thumbnail and determines how the thumbnail image is adjusted.
When this method completes successfully, it returns a that represents the thumbnail image or null if there is no thumbnail image associated with the file.
Gets the parent folder of the current file.
Moves the current file to the specified folder and renames the file according to the desired name.
The destination folder where the file is moved.
Moves the current file to the specified folder and renames the file according to the desired name.
The destination folder where the file is moved.
The desired name of the file after it is moved.
Moves the current file to the location of the specified file and replaces the specified file in that location.
The file to replace.
No object or value is returned by this method.
Renames the current file.
The desired, new name of the current item.
No object or value is returned by this method when it completes.
Renames the current file.
This method also specifies what to do if an existing item in the current file's location has the same name.
The desired, new name of the current file.
If there is an existing item in the current file's location that already has the specified desiredName, the specified determines how the system responds to the conflict.
The enum value that determines how the system responds if the desiredName is the same as the name of an existing item in the current file's location.
No object or value is returned by this method when it completes.
Gets the attributes of a file.
Gets the date and time when the current file was created.
Gets the MIME type of the contents of the file.
PlatformVersion supported
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
Gets the type (file name extension) of the file.
Gets the name of the file including the file name extension.
Gets the full file-system path of the current file, if the file has a path.
Indicates whether the current file is equal to the specified file.
The object that represents a file to compare against.
Returns true if the current file is equal to the specified file; otherwise false.
Determines whether the current matches the specified value.
The value to match against.
True if the matches the specified value; otherwise false.
Manages folders and their contents and provides information about them.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets a StorageFile object to represent the file at the specified path.
The path of the file to get a StorageFile to represent.
If your path uses slashes, make sure you use backslashes(\).
Forward slashes(/) are not accepted by this method.
When this method completes, it returns the file as a StorageFile.
Creates a new file with the specified name in the current folder.
The name of the new file to create in the current folder.
When this method completes, it returns a StorageFile that represents the new file.
Creates a new file with the specified name in the current folder.
The name of the new file to create in the current folder.
One of the enumeration values that determines how to handle the collision if a file with the specified desiredName already exists in the current folder.
When this method completes, it returns a StorageFile that represents the new file.
Creates a new subfolder with the specified name in the current folder.
The name of the new subfolder to create in the current folder.
When this method completes, it returns a StorageFolder that represents the new subfolder.
Creates a new subfolder with the specified name in the current folder.
This method also specifies what to do if a subfolder with the same name already exists in the current folder.
The name of the new subfolder to create in the current folder.
One of the enumeration values that determines how to handle the collision if a subfolder with the specified desiredName already exists in the current folder.
When this method completes, it returns a StorageFolder that represents the new subfolder.
Deletes the current folder.
Deletes the current folder.
This method also specifies whether to delete the folder permanently.
Gets the basic properties of the current folder.
Gets the file with the specified name from the current folder.
Gets the files in the current folder.
Gets the specified folder from the current folder.
The name of the child folder to retrieve.
When this method completes successfully, it returns a StorageFolder that represents the child folder.
Gets the folders in the current folder.
Gets the file or folder with the specified name from the current folder.
The name (or path relative to the current folder) of the file or folder to get.
Gets the items in the current folder.
Gets the parent folder of the current folder.
When this method completes, it returns the parent folder as a .
Tries to get the file or folder with the specified name from the current folder.
Returns null instead of raising a FileNotFoundException if the specified file or folder is not found.
The name (or path relative to the current folder) of the file or folder to get.
When this method completes successfully, it returns an IStorageItem that represents the specified file or folder.
If the specified file or folder is not found, this method returns null instead of raising an exception.
Gets the attributes of the current folder.
Gets the date and time that the current folder was created.
Gets the name of the current folder.
Gets the full path of the current folder in the file system, if the path is available.
Indicates whether the current folder is equal to the specified folder.
The object that represents the folder to compare against.
Returns true if the current folder is equal to the specified folder; otherwise false.
Indicates whether the current matches the specified value.
The enum value that determines the object type to match against.
True if the matches the specified value; otherwise false.
Provides additional methods for .
Deletes all contents of a folder without deleting the folder itself.
Returns the size, in bytes, of the folder and all of its contents.
The folder to measure
The size, in bytes, of the folder and all of its contents.
Describes whether an item that implements the interface is a file or a folder.
A storage item that is neither a file nor a folder.
A file that is represented as a instance.
A folder that is represented as a instance.
Specifies the type of character encoding for a stream.
The encoding is UTF-8.
The encoding is UTF-16, with the least significant byte first in the two eight-bit bytes.
The encoding is UTF-16, with the most significant byte first in the two eight-bit bytes.
Represents a display request.
To conserve power and extend battery life, the system reduces power to the computer if it does not detect any user activity for a certain amount of time.
Depending on system power settings, the display may first be dimmed, a screen saver may be displayed, and eventually the display may be turned off as the system enters a low-power sleep state.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Activates a display request.
Deactivates a display request.
Starts the default app associated with the specified file or URI.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Starts the app associated with the specified file.
The file.
The launch operation.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Launches File Explorer and displays the contents of the specified folder.
The folder to display in File Explorer.
The result of the operation.
PlatformVersion supported
- macOSOS X 10.7 and later
- Windows UWPWindows 10
- Windows (Desktop Apps)Windows 7 or later
Starts the default app associated with the URI scheme name for the specified URI.
The URI.
Ignored on Android and iOS.
The launch operation.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Starts the default app associated with the URI scheme name for the specified URI.
The URI.
The launch operation.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Asynchronously query whether an app can be activated for the specified URI and launch type.
The URI.
The type of launch for which to query support.
Returns true if the default app for the URI scheme was launched; false otherwise.
PlatformVersion supported
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows Store-
- Windows Phone Store-
- Windows Phone Silverlight-
- Windows (Desktop Apps)Windows 7 or later
Placeholder to supply attributes for starting a task.
Specifies whether an app is available that supports activation
PlatformVersion supported
- Android-
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows Store-
- Windows Phone Store-
- Windows Phone Silverlight-
- Windows (Desktop Apps)-
An app that handles the activation is available and may be activated.
No app is installed to handle the activation.
An app that handles the activation is installed but not available because it is being updated by the store or it was installed on a removable device that is not available.
The app does not handle the activation.
An unknown error was encountered while determining whether an app supports the activation.
Specifies the type of activation to query for.
PlatformVersion supported
- Android-
- iOS-
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows Store-
- Windows Phone Store-
- Windows Phone Silverlight-
- Windows (Desktop Apps)-
Activate by URI but do not return a result to the calling app.
This is the default.
Activate by URI and return a result to the calling app.
Specifies the processor architecture supported by an app.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
The x86 processor architecture.
The ARM processor architecture.
The x64 processor architecture.
A neutral processor architecture.
An unknown processor architecture.
Provides information about the device for profiling purposes.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the device form factor.
For example, the app could be running on a phone, tablet, desktop, and so on.
Gets version info about the device family.
Provides version information about the device family.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets a string that represents the type of device the application is running on.
Gets the version within the device family.
Creates a settings command object that represents a settings entry.
This settings command can be appended to the ApplicationCommands collection.
Creates a new settings command.
The ID of the command.
The label for the command, which is displayed in the settings pane.
The event handler that is called when the user selects this command in the settings pane.
Gets or sets the command ID.
Gets or sets the handler for the event that is raised when the user selects the command.
Gets or sets the label for the command.
A static class that enables the app to control the Settings page.
The app can add or remove commands, receive a notification when the user opens the pane, or open the page programmatically.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
Gets a object that is associated with the current app.
Displays the Settings page to the user.
Occurs when the user opens the settings pane.
Listening for this event lets the app initialize the setting commands and pause its UI until the user closes the pane.
During this event, append your SettingsCommand objects to the available ApplicationCommands vector to make them available to the SettingsPane UI.
Contains properties that are only available during the event.
A vector that is available during the event.
Append SettingsCommand objects to it to make them available to the SettingsPane UI.
Contains arguments that are available from the event object during the event.
An instance of that is made available during the event.
Describes a color in terms of alpha, red, green, and blue channels.
Can be implicitly converted into a variety of platform-specific types.
PlatformPlatform Type
- AndroidAndroid.Graphics.Color
- iOS, tvOS, macOS, watchOSCoreGraphics.CGColor
- iOS, tvOS, macOSCoreImage.CIColor
- iOS, tvOSUIKit.UIColor
- macOSAppKit.NSColor
- Windows UWP, Windows Store, Windows Phone StoreWindows.UI.Color
- Windows Phone SilverlightSystem.Windows.Media.Color
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Creates a new structure by using the specified sRGB color channel values.
Creates a new structure by using the specified sRGB alpha channel and color channel values.
Compares two structures for equality.
The structure to compare to this .
Returns the color value as a UInt32 of the form 0xBBGGRRAA.
Gets or sets the sRGB alpha channel value of the color.
Gets or sets the sRGB blue channel value of the color.
Gets or sets the sRGB green channel value of the color.
Gets or sets the sRGB red channel value of the color.
Defines the content, associated metadata, and expiration time of an update to a tile's badge overlay.
A badge can display a number from 1 to 999 (beyond this truncation will occur)
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.1 or later
Simplifies creation of badges without the need to build XML documents.
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.1 or later
Creates a badge notification with the required numerical value.
Value to show on the badge. Zero will hide the badge.
Creates objects that you use to manipulate a tile's badge overlay.
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.1 or later
Creates and initializes a new instance of the , which lets you change the appearance or content of the badge on the calling app's tile.
The object you will use to send changes to the app tile's badge.
Updates a badge overlay on the specific tile that the updater is bound to.
PlatformVersion supported
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- watchOSwatchOS 2.0 and later
- TizenTizen 3.0
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.1 or later
Removes the badge from the tile that the updater is bound to.
Applies a change to the badge's number.
The object that supplies the new XML definition for the badge.
Represents a command in a context menu or message dialog box.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets or sets the identifier of the command.
Ges or sets the handler for the event that is fired when the user invokes the command.
Gets or sets the label for the command.
Represents a callback function that handles the event that is fired when the user invokes a context menu command.
Represents the invoked command.
Represents a dialog.
The dialog has a command bar that can support up to three commands.
If you don't specify any commands, then a default command is added to close the dialog.
The dialog dims the screen behind it and blocks touch events from passing to the app's canvas until the user responds.
Message dialogs should be used sparingly, and only for critical messages or simple questions that must block the user's flow.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Initializes a new instance of the class to display an untitled message dialog box that can be used to ask your user simple questions.
The message you want displayed to the user.
Initializes a new instance of the class to display a titled message dialog box that can be used to ask your user simple questions.
The message you want displayed to the user.
The title you want displayed on the dialog box.
Begins an asynchronous operation showing a dialog.
An object that represents the asynchronous operation.
For more on the async pattern, see Asynchronous programming in the Windows Runtime.
In some cases, such as when the dialog is closed by the system out of your control, your result can be an empty command.
Returns either the command selected which destroyed the dialog, or an empty command.
For example, a dialog hosted in a charms window will return an empty command if the charms window has been dismissed.
Gets the set of commands that appear in the command bar of the message dialog.
This is the array of commands that makes the dialog actionable.
Get this array and add your dialog commands to it.
The commands.
Gets or sets the message to be displayed to the user.
The message to be displayed to the user.
Use the content to convey the objective of the dialog.
Present the message, error or blocking question as simply as possible without extraneous information.
When a title is used, use the content to present additional information helpful to understanding or using the dialog.
You can use this area to provide more detail or define terminology.
Don't repeat the title with slightly different wording.
Gets or sets the index of the command you want to use as the cancel command.
This is the command that fires when users press the ESC key.
Add the commands before you set the index.
Gets or sets the index of the command you want to use as the default.
This is the command that fires by default when users press the ENTER key instead of a specific command, for example.
Add the commands before you set the index.
The index of the default command.
Gets or sets the title to display on the dialog box, if any.
The title you want to display on the dialog.
If the title is not set, this will return an empty string.
Use the title as a concise main instruction to convey the objective of the dialog.
Long titles do not wrap and will be truncated.
If you're using the dialog to deliver a simple message, error or question, omit the title.
Rely on the to deliver that core information.
Represents a command in a context menu.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Initializes a new instance of the class.
Initializes a new instance of the UICommand class, using the specified label and event handler.
The label for the new command.
The event handler for the new command.
Initializes a new instance of the UICommand class, using the specified label, event handler, and command identifier.
The label for the new command.
The event handler for the new command.
The command identifier for the new command.
Gets or sets the identifier of the command.
Gets or sets the handler for the event that is raised when the user selects the command.
Gets or sets the label for the command.
Defines constants that specify known system color values.
The background color.
The foreground color.
The accent color.
Defines the set of user interface element types.
An active caption element.
A background element.
A button face element.
The text displayed on a button.
The text displayed in a caption.
Greyed text.
A highlighted user interface (UI) element.
Highlighted text.
A hotlighted UI element.
An inactive caption element.
The text displayed in an inactive caption element.
A window.
The text displayed in a window's UI decoration.
Contains a set of common app user interface settings and operations.
PlatformVersion supported
- tvOStvOS 9.0 and later
- Windows UWPWindows 10 Mobile
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Returns the color value of the specified color type.
An enumeration value that specifies the type of color to get a value for.
The color value of the specified color type.
PlatformVersion supported
- tvOStvOS 9.0 and later
- Windows UWPWindows 10 Mobile
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Gets the color used for a specific user interface element type, such as a button face or window text.
The type of element for which the color will be obtained.
The color of the element type, expressed as a 32-bit color value.
PlatformVersion supported
- Windows UWPWindows 10 Mobile
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
- Windows (Desktop Apps)Windows 7 or later
Provides a timer that is integrated into the Dispatcher queue, which is processed at a specified interval of time.
PlatformVersion supported
- AndroidAndroid 4.4 and later
- iOSiOS 9.0 and later
- macOSOS X 10.7 and later
- tvOStvOS 9.0 and later
- Windows UWPWindows 10
- Windows StoreWindows 8.1 or later
- Windows Phone StoreWindows Phone 8.1 or later
- Windows Phone SilverlightWindows Phone 8.0 or later
Initializes a new instance of the class.
Occurs when the timer interval has elapsed.
Gets or sets the amount of time between timer ticks.
Gets a value that indicates whether the timer is running.
true if the timer is enabled and running; otherwise, false.
Starts the .
If the timer has already started, then it is restarted.
Stops the .
Contains extension methods for the IStorageFile and IStorageFolder interfaces for .NET interop.
Retrieves a stream for reading from a specified file.
Retrieves a stream for reading from a file in the specified parent folder.
The Windows Runtime IStorageFolder object that contains the file to read from.
The path, relative to the root folder, to the file to read from.
Retrieves a stream for writing to a specified file.
The Windows Runtime IStorageFile object to write to.
Retrieves a stream for writing from a file in the specified parent folder.
The Windows Runtime IStorageFolder object that contains the file to write to.
The path, relative to the root folder, to the file to write to.