ContractBase.QueryContract(String) Metodo

Definizione

Esegue la riflessione rispetto all'istanza di un contratto e restituisce il puntatore this se l'oggetto corrente implementa tale contratto.

public:
 virtual System::AddIn::Contract::IContract ^ QueryContract(System::String ^ contractIdentifier);
public virtual System.AddIn.Contract.IContract QueryContract (string contractIdentifier);
abstract member QueryContract : string -> System.AddIn.Contract.IContract
override this.QueryContract : string -> System.AddIn.Contract.IContract
Public Overridable Function QueryContract (contractIdentifier As String) As IContract

Parametri

contractIdentifier
String

Nome completo del contratto, compreso il relativo nome dell'assembly.

Restituisce

Puntatore this a un'interfaccia IContract oppure null se il contratto non è implementato.

Implementazioni

Eccezioni

contractIdentifier è null.

Commenti

Questo metodo può essere sottoposto a override.

Si applica a