Document.GetOptionsAsync(CancellationToken) 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.
Returns the options that should be applied to this document. This consists of global options from Options, merged with any settings the user has specified at the document levels.
public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Options.DocumentOptionSet> GetOptionsAsync (System.Threading.CancellationToken cancellationToken = default);
member this.GetOptionsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Options.DocumentOptionSet>
Public Function GetOptionsAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of DocumentOptionSet)
Parameters
- cancellationToken
- CancellationToken
Returns
Remarks
This method is async because this may require reading other files. In files that are already open, this is expected to be cheap and complete synchronously.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.