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.
파일 보기 프로젝트 열기: inthehand/Charming

공개 메소드들

메소드 설명
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