IVsSingleFileGeneratorAsync.GetDefaultExtensionAsync 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.
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
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.