Lezen in het Engels Bewerken

Delen via


ContractBase.QueryContract(String) Method

Definition

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

public virtual System.AddIn.Contract.IContract QueryContract (string contractIdentifier);

Parameters

contractIdentifier
String

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

Returns

The this pointer to an IContract interface, or null if the contract is not implemented.

Implements

Exceptions

contractIdentifier is null.

Remarks

This method can be overridden.

Applies to

Product Versies
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1