IProfferServiceContract 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使客戶能為合約實施的元件提供客製化服務。
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
方法
| 名稱 | Description |
|---|---|
| AcquireLifetimeToken() |
規定合約在客戶撤銷合約前仍可取得。 (繼承來源 IContract) |
| GetRemoteHashCode() |
回傳一個雜湊碼。IContract (繼承來源 IContract) |
| ProfferService(String, IServiceProviderContract) |
將一項服務加入元件客戶端可存取的服務集合中。 |
| QueryContract(String) |
回傳由該合約實作的合約。 (繼承來源 IContract) |
| RemoteEquals(IContract) |
表示指定的契約是否等於此。IContract (繼承來源 IContract) |
| RemoteToString() |
回傳當前 IContract的字串表示。 (繼承來源 IContract) |
| RevokeLifetimeToken(Int32) |
規定合約不再對客戶開放。 (繼承來源 IContract) |
| RevokeService(String) |
從元件所提供的服務集合中移除一項服務。 |