This documentation is archived and is not being maintained.

IRemoteTypeContract.GetMethod Method

Returns an IRemoteMethodInfoContract that provides access to a specified method of the current IRemoteTypeContract.

Namespace:  System.AddIn.Contract.Automation
Assembly:  System.AddIn.Contract (in System.AddIn.Contract.dll)

IRemoteMethodInfoContract GetMethod(
	string name,
	BindingFlags bindingFlags,
	IArrayContract<IRemoteTypeContract> remoteTypes


Type: System.String

The name of a method of the current IRemoteTypeContract.

Type: System.Reflection.BindingFlags

A bitwise combination of the BindingFlags values that specifies how to search for the method.

Type: System.AddIn.Contract.Collections.IArrayContract<IRemoteTypeContract>

An IArrayContract<C> of IRemoteTypeContract objects that represent the number, order, and type of the parameters for the method to get.

Return Value

Type: System.AddIn.Contract.Automation.IRemoteMethodInfoContract
An IRemoteMethodInfoContract that provides access to the specified method, if found; otherwise, null.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5