IServiceProviderContract.QueryService(String, String) Méthode

Définition

Retourne un contrat de service implémenté par ce IServiceProviderContract.

public:
 System::AddIn::Contract::IContract ^ QueryService(System::String ^ serviceIdentifier, System::String ^ serviceContractIdentifier);
public System.AddIn.Contract.IContract QueryService (string serviceIdentifier, string serviceContractIdentifier);
abstract member QueryService : string * string -> System.AddIn.Contract.IContract
Public Function QueryService (serviceIdentifier As String, serviceContractIdentifier As String) As IContract

Paramètres

serviceIdentifier
String

Nom du service demandé.

serviceContractIdentifier
String

Contrat de service demandé.

Retours

IContract qui représente un contrat de service qu'un client demande à partir du IServiceProviderContract; null si le IServiceProviderContract n'implémente pas le contrat demandé.

Remarques

Les formats des chaînes qui identifient les services et les contrats de service sont définis par l’implémentation IServiceProviderContract . Il est recommandé que IServiceProviderContract les implémentations identifient un contrat de service par la AssemblyQualifiedName propriété du type qui implémente le contrat de service.

S’applique à