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)

abstract QueryContract : 
        contractIdentifier:string -> IContract  
override QueryContract : 
        contractIdentifier:string -> IContract

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 a null reference (Nothing in Visual Basic) if the contract is not implemented.

Implements

IContract.QueryContract(String)

ExceptionCondition
ArgumentNullException

contractIdentifier is a null reference (Nothing in Visual Basic).

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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft