ContractAdapterBase.RaiseAdapterResolveEvent Method
This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.
Raises the AdapterResolve event.
Namespace: Microsoft.VisualStudio.Tools.Applications
Assembly: Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0.dll)
Syntax
'Declaration
Protected Shared Function RaiseAdapterResolveEvent ( _
objectToPack As Object, _
typeToUse As Type, _
typeInfrastructureManager As TypeInfrastructureManager _
) As IContract
'Usage
Dim objectToPack As Object
Dim typeToUse As Type
Dim typeInfrastructureManager As TypeInfrastructureManager
Dim returnValue As IContract
returnValue = ContractAdapterBase.RaiseAdapterResolveEvent(objectToPack, _
typeToUse, typeInfrastructureManager)
protected static IContract RaiseAdapterResolveEvent(
Object objectToPack,
Type typeToUse,
TypeInfrastructureManager typeInfrastructureManager
)
protected:
static IContract^ RaiseAdapterResolveEvent(
Object^ objectToPack,
Type^ typeToUse,
TypeInfrastructureManager^ typeInfrastructureManager
)
protected static function RaiseAdapterResolveEvent(
objectToPack : Object,
typeToUse : Type,
typeInfrastructureManager : TypeInfrastructureManager
) : IContract
Parameters
objectToPack
Type: System.ObjectThe local object that is being passed to or returned by a member of a proxy.
typeToUse
Type: System.TypeThe type of the parameter or return value of the proxy member that objectToPack is being passed to or returned by. In most cases, expectedType is the type of objectToPack.
typeInfrastructureManager
Type: Microsoft.VisualStudio.Tools.Applications.TypeInfrastructureManagerA type infrastructure manager that can be used to create an adapter.
Return Value
Type: System.AddIn.Contract.IContract
The custom adapter in which to wrap a local object that is being passed to or returned by a member of a proxy.