This documentation is archived and is not being maintained.

IProfferServiceContract Interface

Enables clients to provide custom services to components on which the contract is implemented.

Namespace:  System.AddIn.Contract
Assembly:  System.AddIn.Contract (in System.AddIn.Contract.dll)

public interface IProfferServiceContract : IContract

A component implements IProfferServiceContract to enable clients to offer services to the component. After a service has been offered to a component, other clients of the component can access the service. Components typically implement IProfferServiceContract on the same type on which they implement IServiceProviderContract.

Clients use the ProfferService method to add an IServiceProviderContract to the set of service providers offered by a component. Clients use the RevokeService method to remove an IServiceProviderContract from the set of service providers offered by a component.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5