Dela via


AdapterResolveEventArgs.ExpectedType Property

This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.

Gets the type of the parameter or return value of the proxy member that a local object is being passed to or returned by.

Namespace:  Microsoft.VisualStudio.Tools.Applications
Assembly:  Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0.dll)

Syntax

'Declaration
Public ReadOnly Property ExpectedType As Type
'Usage
Dim instance As AdapterResolveEventArgs 
Dim value As Type 

value = instance.ExpectedType
public Type ExpectedType { get; }
public:
property Type^ ExpectedType {
    Type^ get ();
}
public function get ExpectedType () : Type

Property Value

Type: System.Type
The type of the parameter or return value of the proxy member that a local object is being passed to or returned by.

Remarks

You can use the ExpectedType property in an event handler for the AdapterResolve event to determine which adapter to use.

See Also

Reference

AdapterResolveEventArgs Class

AdapterResolveEventArgs Members

Microsoft.VisualStudio.Tools.Applications Namespace