ToolWindowProvider Class

Definition

A class for managing and interacting with tool windows.

public class ToolWindowProvider : Microsoft.VisualStudio.Extensibility.ExtensionPart, Microsoft.VisualStudio.RpcContracts.ToolWindows.IToolWindowProvider
type ToolWindowProvider = class
    inherit ExtensionPart
    interface IToolWindowProvider
Public Class ToolWindowProvider
Inherits ExtensionPart
Implements IToolWindowProvider
Inheritance
ToolWindowProvider
Implements

Constructors

ToolWindowProvider(ExtensionCore, VisualStudioExtensibility, IServiceProvider, TraceSource)

Initializes a new instance of the ToolWindowProvider class.

Properties

Container

Gets the container instance that hosts this and related parts.

(Inherited from ExtensionPart)
Extensibility

Gets the extensibility instance for this service.

(Inherited from ExtensionPart)
IsDisposed

Gets a value indicating whether the object is disposed.

(Inherited from ExtensionPart)

Methods

CreateToolWindowAsync(String, CancellationToken)

Creates and initializes the tool window associated with the given identifier.

Dispose() (Inherited from ExtensionPart)
Dispose(Boolean)

Disposes the instane and underlying services.

GetTitleAsync(String, CancellationToken)

Gets the title of the tool window associated with the given identifier.

GetToolWindow(String)

Gets the tool window for the given identifier.

InitializeAsync(CancellationToken)

Provides an asynchronous way for extension parts to initialize their fields. This method is called before the instance is handed to Visual Studio.

(Inherited from ExtensionPart)
OnHideAsync(String, CancellationToken)

Notifies that the tool window associated with the given identifier is being hidden.

OnShowAsync(String, CancellationToken)

Notifies that the tool window associated with the given identifier is being shown.

RegisterToolWindow(Type)

Registers a tool window with the tool window provider.

SubscribeAsync(IObserver<ToolWindowPropertyChangedArgs>, CancellationToken)

Attaches an observer that receives updates about tool window property changes.

Applies to