IProfferServiceContract.ProfferService Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.