ProxyResolveEventArgs.ProxyToReturn Property
This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.
Gets or sets the proxy object to return after the event is handled.
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 Property ProxyToReturn As Object
'Usage
Dim instance As ProxyResolveEventArgs
Dim value As Object
value = instance.ProxyToReturn
instance.ProxyToReturn = value
public Object ProxyToReturn { get; set; }
public:
property Object^ ProxyToReturn {
Object^ get ();
void set (Object^ value);
}
public function get ProxyToReturn () : Object
public function set ProxyToReturn (value : Object)
Property Value
Type: System.Object
The proxy object to return after the event is handled.
Remarks
If you want to return a custom proxy to a caller for a given adapter or object call tree, set the ProxyToReturn property in an event handler for the ProxyResolve or ProxyUnresolved events.