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.
Datei anzeigen Open project: inthehand/Charming

Public Methods

Method 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

Method Description
ApiInformation ( ) : System

Method Details

IsApiContractPresent() public static method

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.
return bool

IsApiContractPresent() public static method

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.
return bool

IsEnumNamedValuePresent() public static method

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.
return bool

IsEventPresent() public static method

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.
return bool

IsMethodPresent() public static method

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.
return bool

IsMethodPresent() public static method

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.
return bool

IsPropertyPresent() public static method

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.
return bool

IsReadOnlyPropertyPresent() public static method

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.
return bool

IsTypePresent() public static method

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.
return bool

IsWriteablePropertyPresent() public static method

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.
return bool