語言

IRemoteDelegateContract 介面

定義

定義一個合約,讓元件可以用來跨應用程式域與流程邊界存取代理。

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

備註

要呼叫代理,請使用該 InvokeDelegate 方法。

若要將代理加入事件或移除代理,請呼叫 Invoke 的方法,該方法IRemoteMethodInfoContract由 或 返回GetAddMethodGetRemoveMethod。 傳遞IRemoteDelegateContract代表 的parametersInvoke參數 的 。

方法

名稱 Description
AcquireLifetimeToken()

規定合約在客戶撤銷合約前仍可取得。

(繼承來源 IContract)
GetRemoteHashCode()

回傳一個雜湊碼。IContract

(繼承來源 IContract)
GetRemoteType()

回傳 和 IRemoteTypeContract ,該 表示電流 IRemoteObjectContract的類型。

(繼承來源 IRemoteObjectContract)
InvokeDelegate(IRemoteArgumentArrayContract)

呼喚此 IRemoteDelegateContract 代表。

QueryContract(String)

回傳由該合約實作的合約。

(繼承來源 IContract)
RemoteCast(String)

將電流 IRemoteObjectContract 識別的物件鑄造成特定類型。

(繼承來源 IRemoteObjectContract)
RemoteEquals(IContract)

表示指定的契約是否等於此。IContract

(繼承來源 IContract)
RemoteToString()

回傳當前 IContract的字串表示。

(繼承來源 IContract)
RevokeLifetimeToken(Int32)

規定合約不再對客戶開放。

(繼承來源 IContract)

適用於