IServiceProviderContract Interface


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Defines a mechanism for retrieving a service contract from a component.

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

public interface IServiceProviderContract : IContract


Specifies that the contract is accessible to a client until the client revokes the contract.(Inherited from IContract.)


Returns a hash code for the IContract.(Inherited from IContract.)


Returns a contract that is implemented by this contract.(Inherited from IContract.)

System_CAPS_pubmethodQueryService(String, String)

Returns a service contract that is implemented by this IServiceProviderContract.


Indicates whether the specified contract is equal to this IContract.(Inherited from IContract.)


Returns a string representation of the current IContract.(Inherited from IContract.)


Specifies that the contract is no longer accessible to a client.(Inherited from IContract.)

The IServiceProviderContract interface defines a contract that enables a component to obtain a custom service that is defined by another component. A component that implements IServiceProviderContract is known as a service provider. Service providers implement the QueryService method to return an IContract that implements a service.

.NET Framework
Available since 3.5
Return to top