ApiInformation Class
Definition
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.
public ref class ApiInformation abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Windows.Foundation.Metadata.IApiInformationStatics, 65536, Windows.Foundation.FoundationContract)]
class ApiInformation abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Windows.Foundation.Metadata.IApiInformationStatics, 65536, "Windows.Foundation.FoundationContract")]
class ApiInformation abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Windows.Foundation.Metadata.IApiInformationStatics, 65536, "Windows.Foundation.FoundationContract")]
/// [Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ApiInformation abstract sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.Foundation.Metadata.IApiInformationStatics), 65536, typeof(Windows.Foundation.FoundationContract))]
public static class ApiInformation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.Foundation.Metadata.IApiInformationStatics), 65536, "Windows.Foundation.FoundationContract")]
public static class ApiInformation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.Foundation.Metadata.IApiInformationStatics), 65536, "Windows.Foundation.FoundationContract")]
[Windows.Foundation.Metadata.DualApiPartition(version=167772160)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class ApiInformation
Public Class ApiInformation
- Inheritance
-
ApiInformation
- Attributes
Windows 10 requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.FoundationContract (introduced in v1.0)
|
Methods
IsApiContractPresent(String, UInt16) |
Returns true or false to indicate whether the API contract with the specified name and major version number is present. |
IsApiContractPresent(String, UInt16, UInt16) |
Returns true or false to indicate whether the API contract with the specified name and major and minor version number is present. |
IsEnumNamedValuePresent(String, String) |
Returns true or false to indicate whether a specified named constant is present for a specified enumeration. |
IsEventPresent(String, String) |
Returns true or false to indicate whether a specified event is present for a specified type. |
IsMethodPresent(String, String) |
Returns true or false to indicate whether a specified method is present for a specified type. |
IsMethodPresent(String, String, UInt32) |
Returns true or false to indicate whether a specified method overload with the specified number of input parameters is present for a specified type. |
IsPropertyPresent(String, String) |
Returns true or false to indicate whether a specified property (writeable or read-only) is present for a specified type. |
IsReadOnlyPropertyPresent(String, String) |
Returns true or false to indicate whether a specified read-only property is present for a specified type. |
IsTypePresent(String) |
Returns true or false to indicate whether a specified type is present. |
IsWriteablePropertyPresent(String, String) |
Returns true or false to indicate whether a specified writeable property is present for a specified type. |