IServiceProviderContract Interface

 

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 class IServiceProviderContract : IContract

NameDescription
System_CAPS_pubmethodAcquireLifetimeToken()

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

System_CAPS_pubmethodGetRemoteHashCode()

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

System_CAPS_pubmethodQueryContract(String^)

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.

System_CAPS_pubmethodRemoteEquals(IContract^)

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

System_CAPS_pubmethodRemoteToString()

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

System_CAPS_pubmethodRevokeLifetimeToken(Int32)

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
Show: