ApiInformation ApiInformation ApiInformation ApiInformation 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 : static class ApiInformation
static struct winrt::Windows::Foundation::Metadata::ApiInformation
public static class ApiInformation
Public Shared Class ApiInformation
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Methods

IsApiContractPresent(String, UInt16) IsApiContractPresent(String, UInt16) IsApiContractPresent(String, UInt16) IsApiContractPresent(String, UInt16) 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) IsApiContractPresent(String, UInt16, UInt16) IsApiContractPresent(String, UInt16, UInt16) IsApiContractPresent(String, UInt16, UInt16) 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) IsEnumNamedValuePresent(String, String) IsEnumNamedValuePresent(String, String) IsEnumNamedValuePresent(String, String) IsEnumNamedValuePresent(String, String)

Returns true or false to indicate whether a specified named constant is present for a specified enumeration.

IsEventPresent(String, String) IsEventPresent(String, String) IsEventPresent(String, String) IsEventPresent(String, String) IsEventPresent(String, String)

Returns true or false to indicate whether a specified event is present for a specified type.

IsMethodPresent(String, String) IsMethodPresent(String, String) IsMethodPresent(String, String) IsMethodPresent(String, String) IsMethodPresent(String, String)

Returns true or false to indicate whether a specified method is present for a specified type.

IsMethodPresent(String, String, UInt32) IsMethodPresent(String, String, UInt32) IsMethodPresent(String, String, UInt32) IsMethodPresent(String, String, UInt32) 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) IsPropertyPresent(String, String) IsPropertyPresent(String, String) IsPropertyPresent(String, String) 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) IsReadOnlyPropertyPresent(String, String) IsReadOnlyPropertyPresent(String, String) IsReadOnlyPropertyPresent(String, String) IsReadOnlyPropertyPresent(String, String)

Returns true or false to indicate whether a specified read-only property is present for a specified type.

IsTypePresent(String) IsTypePresent(String) IsTypePresent(String) IsTypePresent(String) IsTypePresent(String)

Returns true or false to indicate whether a specified type is present.

IsWriteablePropertyPresent(String, String) IsWriteablePropertyPresent(String, String) IsWriteablePropertyPresent(String, String) IsWriteablePropertyPresent(String, String) IsWriteablePropertyPresent(String, String)

Returns true or false to indicate whether a specified writeable property is present for a specified type.

See Also