RemoteUserControl Constructors

Definition

Overloads

RemoteUserControl(Object)

Initializes a new instance of the RemoteUserControl class.

RemoteUserControl(Object, SynchronizationContext)

Initializes a new instance of the RemoteUserControl class.

RemoteUserControl(Object, VisualStudioExtensibility, SynchronizationContext, TraceSource)

Initializes a new instance of the RemoteUserControl class.

RemoteUserControl(Object)

Initializes a new instance of the RemoteUserControl class.

public RemoteUserControl (object? dataContext);
new Microsoft.VisualStudio.Extensibility.UI.RemoteUserControl : obj -> Microsoft.VisualStudio.Extensibility.UI.RemoteUserControl
Public Sub New (dataContext As Object)

Parameters

dataContext
Object

Data context of the remote control which can be referenced from xaml through data binding.

Exceptions

When dataContext is a value type.

Applies to

RemoteUserControl(Object, SynchronizationContext)

Initializes a new instance of the RemoteUserControl class.

public RemoteUserControl (object? dataContext, System.Threading.SynchronizationContext? synchronizationContext);
new Microsoft.VisualStudio.Extensibility.UI.RemoteUserControl : obj * System.Threading.SynchronizationContext -> Microsoft.VisualStudio.Extensibility.UI.RemoteUserControl
Public Sub New (dataContext As Object, synchronizationContext As SynchronizationContext)

Parameters

dataContext
Object

Data context of the remote control which can be referenced from xaml through data binding.

synchronizationContext
SynchronizationContext

Optional Microsoft.VisualStudio.Extensibility.UI.RemoteUserControl.synchronizationContext that the extender can provide to ensure that IAsyncCommand are executed and properties are read and updated from the extension main thread.

Exceptions

When dataContext is a value type.

Applies to

RemoteUserControl(Object, VisualStudioExtensibility, SynchronizationContext, TraceSource)

Initializes a new instance of the RemoteUserControl class.

public RemoteUserControl (object? dataContext, Microsoft.VisualStudio.Extensibility.VisualStudioExtensibility extensibility, System.Threading.SynchronizationContext? synchronizationContext = default, System.Diagnostics.TraceSource? logger = default);
new Microsoft.VisualStudio.Extensibility.UI.RemoteUserControl : obj * Microsoft.VisualStudio.Extensibility.VisualStudioExtensibility * System.Threading.SynchronizationContext * System.Diagnostics.TraceSource -> Microsoft.VisualStudio.Extensibility.UI.RemoteUserControl
Public Sub New (dataContext As Object, extensibility As VisualStudioExtensibility, Optional synchronizationContext As SynchronizationContext = Nothing, Optional logger As TraceSource = Nothing)

Parameters

dataContext
Object

Data context of the remote control which can be referenced from xaml through data binding.

extensibility
VisualStudioExtensibility

Extensibility object instance to provide context.

synchronizationContext
SynchronizationContext

Optional Microsoft.VisualStudio.Extensibility.UI.RemoteUserControl.synchronizationContext that the extender can provide to ensure that IAsyncCommand are executed and properties are read and updated from the extension main thread.

logger
TraceSource

Optional trace source instance for logging.

Exceptions

When dataContext is a value type.

Applies to