Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IRemoteTypeContract Interface

IRemoteTypeContract Interface

Defines a contract that components can use to access type information and invoke members across application domain and process boundaries.

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

public interface IRemoteTypeContract : IContract

The IRemoteTypeContract type exposes the following members.

  NameDescription
Public methodAcquireLifetimeTokenSpecifies that the contract is accessible to a client until the client revokes the contract. (Inherited from IContract.)
Public methodGetCanonicalNameReturns the canonical name of the current IRemoteTypeContract.
Public methodGetEventReturns an IRemoteEventInfoContract that provides access to a specified event of the current IRemoteTypeContract.
Public methodGetEventsReturns a collection of IRemoteEventInfoContract objects that provides access to the specified events of the current IRemoteTypeContract.
Public methodGetFieldReturns an IRemoteFieldInfoContract that provides access to a specified field of the current IRemoteTypeContract.
Public methodGetFieldsReturns a collection of IRemoteFieldInfoContract objects that provides access to the specified fields of the current IRemoteTypeContract.
Public methodGetInterfaceReturns an interface that is implemented by the current IRemoteTypeContract.
Public methodGetInterfacesReturns the interfaces that are implemented by the current IRemoteTypeContract.
Public methodGetMemberReturns a collection of IContract objects that provides access to all the specified members of the specified member type in the current IRemoteTypeContract, using the specified binding constraints.
Public methodGetMembersReturns a collection of IContract objects that provides access to all the members in the current IRemoteTypeContract that match the specified binding constraints.
Public methodGetMethodReturns an IRemoteMethodInfoContract that provides access to a specified method of the current IRemoteTypeContract.
Public methodGetMethodsReturns a collection of IRemoteMethodInfoContract objects that provides access to the specified methods of the current IRemoteTypeContract.
Public methodGetPropertiesReturns a collection of IRemotePropertyInfoContract objects that provides access to the specified properties of the current IRemoteTypeContract.
Public methodGetPropertyReturns an IRemotePropertyInfoContract that provides access to a specified property of the current IRemoteTypeContract.
Public methodGetRemoteHashCodeReturns a hash code for the IContract. (Inherited from IContract.)
Public methodGetTypeDataReturns type information about the object that the current IRemoteTypeContract identifies.
Public methodInvokeMemberInvokes the specified member of the current IRemoteTypeContract.
Public methodQueryContractReturns a contract that is implemented by this contract. (Inherited from IContract.)
Public methodRemoteEqualsIndicates whether the specified contract is equal to this IContract. (Inherited from IContract.)
Public methodRemoteToStringReturns a string representation of the current IContract. (Inherited from IContract.)
Public methodRevokeLifetimeTokenSpecifies that the contract is no longer accessible to a client. (Inherited from IContract.)
Top

To get an IRemoteTypeContract, components can call the GetRemoteType method of an object that implements the IRemoteObjectContract interface.

To get information about the type of an object, components call the GetTypeData method.

To get information about the members of an object, components call one of the methods that returns information about a particular kind of member. For example, to get information about the events of an object, components can use the GetEvent or GetEvents method.

To invoke a member of an object, components use the InvokeMember method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft