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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.