Export (0) Print
Expand All

ContractBase.QueryContract Method

Reflects over the instance of a contract and returns the this pointer if the current object implements that contract.

Namespace:  System.AddIn.Pipeline
Assembly:  System.AddIn (in System.AddIn.dll)

public virtual IContract QueryContract(
	string contractIdentifier
)

Parameters

contractIdentifier
Type: System.String

The full name of the contract, including its assembly name.

Return Value

Type: System.AddIn.Contract.IContract
The this pointer to an IContract interface, or null if the contract is not implemented.

Implements

IContract.QueryContract(String)

ExceptionCondition
ArgumentNullException

contractIdentifier is null.

This method can be overridden.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft