IServiceProviderContract IServiceProviderContract IServiceProviderContract IServiceProviderContract Interface


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

public interface class IServiceProviderContract : System::AddIn::Contract::IContract
public interface IServiceProviderContract : System.AddIn.Contract.IContract
type IServiceProviderContract = interface
    interface IContract
Public Interface IServiceProviderContract
Implements 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.


AcquireLifetimeToken() AcquireLifetimeToken() AcquireLifetimeToken() AcquireLifetimeToken()

Specifies that the contract is accessible to a client until the client revokes the contract.

(Inherited from IContract)
GetRemoteHashCode() GetRemoteHashCode() GetRemoteHashCode() GetRemoteHashCode()

Returns a hash code for the IContract.

(Inherited from IContract)
QueryContract(String) QueryContract(String) QueryContract(String) QueryContract(String)

Returns a contract that is implemented by this contract.

(Inherited from IContract)
QueryService(String, String) QueryService(String, String) QueryService(String, String) QueryService(String, String)

Returns a service contract that is implemented by this IServiceProviderContract.

RemoteEquals(IContract) RemoteEquals(IContract) RemoteEquals(IContract) RemoteEquals(IContract)

Indicates whether the specified contract is equal to this IContract.

(Inherited from IContract)
RemoteToString() RemoteToString() RemoteToString() RemoteToString()

Returns a string representation of the current IContract.

(Inherited from IContract)
RevokeLifetimeToken(Int32) RevokeLifetimeToken(Int32) RevokeLifetimeToken(Int32) RevokeLifetimeToken(Int32)

Specifies that the contract is no longer accessible to a client.

(Inherited from IContract)

Applies to