CodeRefactoringContext 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CodeRefactoringContext(Document, TextSpan, Action<CodeAction>, CancellationToken)
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
建立要傳遞至 ComputeRefactoringsAsync(CodeRefactoringContext) 方法的程式碼重構內容。
public:
CodeRefactoringContext(Microsoft::CodeAnalysis::Document ^ document, Microsoft::CodeAnalysis::Text::TextSpan span, Action<Microsoft::CodeAnalysis::CodeActions::CodeAction ^> ^ registerRefactoring, System::Threading::CancellationToken cancellationToken);
public CodeRefactoringContext (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> registerRefactoring, System.Threading.CancellationToken cancellationToken);
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public CodeRefactoringContext (Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.Text.TextSpan span, Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> registerRefactoring, System.Threading.CancellationToken cancellationToken);
new Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext : Microsoft.CodeAnalysis.Document * Microsoft.CodeAnalysis.Text.TextSpan * Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
new Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext : Microsoft.CodeAnalysis.Document * Microsoft.CodeAnalysis.Text.TextSpan * Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext
Public Sub New (document As Document, span As TextSpan, registerRefactoring As Action(Of CodeAction), cancellationToken As CancellationToken)
參數
- document
- Document
- span
- TextSpan
- registerRefactoring
- Action<CodeAction>
- cancellationToken
- CancellationToken
- 屬性
適用於
CodeRefactoringContext(TextDocument, TextSpan, Action<CodeAction>, CancellationToken)
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
- Source:
- CodeRefactoringContext.cs
建立要傳遞至 ComputeRefactoringsAsync(CodeRefactoringContext) 方法的程式碼重構內容。
public CodeRefactoringContext (Microsoft.CodeAnalysis.TextDocument document, Microsoft.CodeAnalysis.Text.TextSpan span, Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> registerRefactoring, System.Threading.CancellationToken cancellationToken);
new Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext : Microsoft.CodeAnalysis.TextDocument * Microsoft.CodeAnalysis.Text.TextSpan * Action<Microsoft.CodeAnalysis.CodeActions.CodeAction> * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringContext
Public Sub New (document As TextDocument, span As TextSpan, registerRefactoring As Action(Of CodeAction), cancellationToken As CancellationToken)
參數
- document
- TextDocument
- span
- TextSpan
- registerRefactoring
- Action<CodeAction>
- cancellationToken
- CancellationToken