IVsSingleFileGeneratorAsync.GetDefaultExtensionAsync Method

Definition

Asynchronously retrieves the file extension that is given to the output file name.

public System.Threading.Tasks.Task<string> GetDefaultExtensionAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetDefaultExtensionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetDefaultExtensionAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

cancellationToken
CancellationToken

A token whose cancellation will attempt to cancel the generation.

Returns

Task<String>

A task that returns the file extension that is to be given to the output file name. The returned extension must include a leading period.

Applies to