Click or drag to resize

DocumentNavigationOperation Class



A CodeActionOperation for navigating to a specific position in a document. When GetOperationsAsync(CancellationToken) is called an implementation of CodeAction can return an instance of this operation along with the other operations they want to apply. For example, an implementation could generate a new Document in one CodeActionOperation and then have the host editor navigate to that Document using this operation.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.CodeActionsCodeActionOperation
    Microsoft.CodeAnalysis.CodeActionsDocumentNavigationOperation

Namespace:  Microsoft.CodeAnalysis.CodeActions
Assembly:  Microsoft.CodeAnalysis.Features (in Microsoft.CodeAnalysis.Features.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public class DocumentNavigationOperation : CodeActionOperation

The DocumentNavigationOperation type exposes the following members.

Constructors
  NameDescription
Public methodDocumentNavigationOperation
Initializes a new instance of the DocumentNavigationOperation class
Top
Properties
  NameDescription
Public propertyTitle
A short title describing of the effect of the operation.
(Inherited from CodeActionOperation.)
Top
Methods
  NameDescription
Public methodApply(Workspace, CancellationToken)
Called by the host environment to apply the effect of the operation. This method is guaranteed to be called on the UI thread.
(Inherited from CodeActionOperation.)
Public methodApply(Workspace, CancellationToken)
Top
See Also