Szerkesztés

Megosztás a következőn keresztül:


IServiceProviderContract.QueryService(String, String) Method

Definition

Returns a service contract that is implemented by this 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

Parameters

serviceIdentifier
String

The name of the service that is being requested.

serviceContractIdentifier
String

The service contract that is being requested.

Returns

An IContract that represents a service contract that a client is requesting from the IServiceProviderContract; null if the IServiceProviderContract does not implement the requested contract.

Remarks

The formats of the strings that identify services and service contracts are defined by the IServiceProviderContract implementation. It is recommended that IServiceProviderContract implementations identify a service contract by the AssemblyQualifiedName property of the type that implements the service contract.

Applies to