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