Share via


IProfferServiceContract 介面

定義

讓用戶端提供自訂服務給元件,合約會針對這些元件來實作。

public interface class IProfferServiceContract : System::AddIn::Contract::IContract
public interface IProfferServiceContract : System.AddIn.Contract.IContract
type IProfferServiceContract = interface
    interface IContract
Public Interface IProfferServiceContract
Implements IContract
實作

備註

元件會實作 IProfferServiceContract ,讓客戶端能夠將服務提供給元件。 將服務提供給元件之後,元件的其他用戶端就可以存取服務。 元件通常會 IProfferServiceContract 在實作的相同類型上實 IServiceProviderContract作。

用戶端會 ProfferService 使用 方法,將 新增 IServiceProviderContract 至元件所提供的服務提供者集。 用戶端會 RevokeService 使用 方法,從元件所提供的服務提供者集合中移除 IServiceProviderContract

方法

AcquireLifetimeToken()

指定合約可供用戶端存取,直到用戶端撤銷合約為止。

(繼承來源 IContract)
GetRemoteHashCode()

傳回 IContract 的雜湊程式碼。

(繼承來源 IContract)
ProfferService(String, IServiceProviderContract)

將服務加入至元件用戶端可存取的服務集合中。

QueryContract(String)

傳回這個合約所實作的合約。

(繼承來源 IContract)
RemoteEquals(IContract)

表示指定的合約是否等於這個 IContract

(繼承來源 IContract)
RemoteToString()

傳回目前 IContract 的字串表示。

(繼承來源 IContract)
RevokeLifetimeToken(Int32)

指定用戶端不再能存取合約。

(繼承來源 IContract)
RevokeService(String)

將服務從元件所提供的服務集合中移除。

適用於