Επεξεργασία

Κοινή χρήση μέσω


IProfferServiceContract.ProfferService Method

Definition

Adds a service to the set of services that can be accessed by clients of a component.

public:
 void ProfferService(System::String ^ serviceIdentifier, System::AddIn::Contract::IServiceProviderContract ^ service);
public void ProfferService (string serviceIdentifier, System.AddIn.Contract.IServiceProviderContract service);
abstract member ProfferService : string * System.AddIn.Contract.IServiceProviderContract -> unit
Public Sub ProfferService (serviceIdentifier As String, service As IServiceProviderContract)

Parameters

serviceIdentifier
String

A string that identifies the service being offered.

service
IServiceProviderContract

An IServiceProviderContract that implements the service being offered.

Remarks

The format of the serviceIdentifier parameter is defined by the IProfferServiceContract implementation. A uniform resource identifier (URI) is the recommended identifier.

Applies to