C# Класс InTheHand.Foundation.Metadata.ApiInformation

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.
Показать файл Открыть проект

Открытые методы

Метод Описание
IsApiContractPresent ( string contractName, ushort majorVersion ) : bool

Returns true or false to indicate whether the API contract with the specified name and major version number is present.

IsApiContractPresent ( string contractName, ushort majorVersion, ushort minorVersion ) : bool

Returns true or false to indicate whether the API contract with the specified name and major and minor version number is present.

IsEnumNamedValuePresent ( string enumTypeName, string valueName ) : bool

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

IsEventPresent ( string typeName, string eventName ) : bool

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

IsMethodPresent ( string typeName, string methodName ) : bool

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

IsMethodPresent ( string typeName, string methodName, uint inputParameterCount ) : bool

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 typeName, string propertyName ) : bool

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

IsReadOnlyPropertyPresent ( string typeName, string propertyName ) : bool

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

IsTypePresent ( string typeName ) : bool

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

IsWriteablePropertyPresent ( string typeName, string propertyName ) : bool

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

Приватные методы

Метод Описание
ApiInformation ( ) : System

Описание методов

IsApiContractPresent() публичный статический Метод

Returns true or false to indicate whether the API contract with the specified name and major version number is present.
public static IsApiContractPresent ( string contractName, ushort majorVersion ) : bool
contractName string The name of the API contract.
majorVersion ushort The major version number of the API contract.
Результат bool

IsApiContractPresent() публичный статический Метод

Returns true or false to indicate whether the API contract with the specified name and major and minor version number is present.
public static IsApiContractPresent ( string contractName, ushort majorVersion, ushort minorVersion ) : bool
contractName string The name of the API contract.
majorVersion ushort The major version number of the API contract.
minorVersion ushort The minor version number of the API contract.
Результат bool

IsEnumNamedValuePresent() публичный статический Метод

Returns true or false to indicate whether a specified named constant is present for a specified enumeration.
public static IsEnumNamedValuePresent ( string enumTypeName, string valueName ) : bool
enumTypeName string The namespace-qualified name of the type.
valueName string The name of the constant.
Результат bool

IsEventPresent() публичный статический Метод

Returns true or false to indicate whether a specified event is present for a specified type.
public static IsEventPresent ( string typeName, string eventName ) : bool
typeName string The namespace-qualified name of the type.
eventName string The name of the event.
Результат bool

IsMethodPresent() публичный статический Метод

Returns true or false to indicate whether a specified method is present for a specified type.
public static IsMethodPresent ( string typeName, string methodName ) : bool
typeName string The namespace-qualified name of the type.
methodName string The name of the method.
Результат bool

IsMethodPresent() публичный статический Метод

Returns true or false to indicate whether a specified method overload with the specified number of input parameters is present for a specified type.
public static IsMethodPresent ( string typeName, string methodName, uint inputParameterCount ) : bool
typeName string The namespace-qualified name of the type.
methodName string The name of the method.
inputParameterCount uint The number of input parameters for the overload.
Результат bool

IsPropertyPresent() публичный статический Метод

Returns true or false to indicate whether a specified property (writeable or read-only) is present for a specified type.
public static IsPropertyPresent ( string typeName, string propertyName ) : bool
typeName string The namespace-qualified name of the type.
propertyName string The name of the property.
Результат bool

IsReadOnlyPropertyPresent() публичный статический Метод

Returns true or false to indicate whether a specified read-only property is present for a specified type.
public static IsReadOnlyPropertyPresent ( string typeName, string propertyName ) : bool
typeName string The namespace-qualified name of the type.
propertyName string The name of the property.
Результат bool

IsTypePresent() публичный статический Метод

Returns true or false to indicate whether a specified type is present.
public static IsTypePresent ( string typeName ) : bool
typeName string The namespace-qualified name of the type.
Результат bool

IsWriteablePropertyPresent() публичный статический Метод

Returns true or false to indicate whether a specified writeable property is present for a specified type.
public static IsWriteablePropertyPresent ( string typeName, string propertyName ) : bool
typeName string The namespace-qualified name of the type.
propertyName string The name of the property.
Результат bool