IRemoteEventInfoContract.GetAddMethod 메서드

정의

IRemoteEventInfoContract가 식별하는 이벤트에 이벤트 처리기 대리자를 추가하는 데 사용된 메서드를 반환합니다.Returns the method that was used to add an event handler delegate to the event that this IRemoteEventInfoContract identifies.

public:
 System::AddIn::Contract::Automation::IRemoteMethodInfoContract ^ GetAddMethod();
public System.AddIn.Contract.Automation.IRemoteMethodInfoContract GetAddMethod ();
abstract member GetAddMethod : unit -> System.AddIn.Contract.Automation.IRemoteMethodInfoContract
Public Function GetAddMethod () As IRemoteMethodInfoContract

반환

IRemoteMethodInfoContract

IRemoteMethodInfoContract가 식별하는 이벤트에 이벤트 처리기 대리자를 추가하는 데 사용된 메서드를 나타내는 IRemoteEventInfoContract입니다.An IRemoteMethodInfoContract that represents the method that was used to add an event handler delegate to the event that this IRemoteEventInfoContract identifies.

설명

대리자에 이벤트를 추가 하려면 호출을 Invoke 메서드의 IRemoteMethodInfoContractGetAddMethod 반환 합니다.To add a delegate to the event, call the Invoke method of the IRemoteMethodInfoContract that GetAddMethod returns. 전달를 IRemoteDelegateContract 대리자를 나타내는 합니다 parameters 의 매개 변수 Invoke합니다.Pass an IRemoteDelegateContract that represents the delegate into the parameters parameter of Invoke.

적용 대상