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
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.