OutputWindowExtensibility.CreateOutputChannelAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.