C# Class 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.
Afficher le fichier Open project: inthehand/Charming

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
ApiInformation ( ) : System

Method Details

IsApiContractPresent() public static méthode

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.
Résultat bool

IsApiContractPresent() public static méthode

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.
Résultat bool

IsEnumNamedValuePresent() public static méthode

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.
Résultat bool

IsEventPresent() public static méthode

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.
Résultat bool

IsMethodPresent() public static méthode

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.
Résultat bool

IsMethodPresent() public static méthode

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.
Résultat bool

IsPropertyPresent() public static méthode

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.
Résultat bool

IsReadOnlyPropertyPresent() public static méthode

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.
Résultat bool

IsTypePresent() public static méthode

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.
Résultat bool

IsWriteablePropertyPresent() public static méthode

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.
Résultat bool