Partilhar via


OutputWindowExtensibility.CreateOutputChannelAsync Method

Definition

Creates a new output window channel.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Documents.OutputChannel> CreateOutputChannelAsync (string displayName, System.Threading.CancellationToken cancellationToken);
member this.CreateOutputChannelAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Extensibility.Documents.OutputChannel>
Public Function CreateOutputChannelAsync (displayName As String, cancellationToken As CancellationToken) As Task(Of OutputChannel)

Parameters

displayName
String

Localized string for the output window title.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

An instance of OutputChannel.

Exceptions

Thrown if an output channel with an identical displayName has already been created by this extension, or if displayName is empty.

Applies to