Olvasás angol nyelven

Megosztás a következőn keresztül:


SymbolEditor.EditAllDeclarationsAsync Method

Definition

Overloads

EditAllDeclarationsAsync(ISymbol, SymbolEditor+AsyncDeclarationEditAction, CancellationToken)

Enables editing all the symbol's declarations. Partial types and methods may have more than one declaration.

EditAllDeclarationsAsync(ISymbol, SymbolEditor+DeclarationEditAction, CancellationToken)

Enables editing all the symbol's declarations. Partial types and methods may have more than one declaration.

EditAllDeclarationsAsync(ISymbol, SymbolEditor+AsyncDeclarationEditAction, CancellationToken)

Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs

Enables editing all the symbol's declarations. Partial types and methods may have more than one declaration.

C#
public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.ISymbol> EditAllDeclarationsAsync(Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Editing.SymbolEditor.AsyncDeclarationEditAction editAction, System.Threading.CancellationToken cancellationToken = default);

Parameters

symbol
ISymbol

The symbol to be edited.

editAction
SymbolEditor.AsyncDeclarationEditAction

The action that makes edits to the declaration.

cancellationToken
CancellationToken

An optional CancellationToken.

Returns

The new symbol including the changes.

Applies to

Roslyn 4.13.0 és más verziók
Termék Verziók
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0

EditAllDeclarationsAsync(ISymbol, SymbolEditor+DeclarationEditAction, CancellationToken)

Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs

Enables editing all the symbol's declarations. Partial types and methods may have more than one declaration.

C#
public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.ISymbol> EditAllDeclarationsAsync(Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Editing.SymbolEditor.DeclarationEditAction editAction, System.Threading.CancellationToken cancellationToken = default);

Parameters

symbol
ISymbol

The symbol to be edited.

editAction
SymbolEditor.DeclarationEditAction

The action that makes edits to the declaration.

cancellationToken
CancellationToken

An optional CancellationToken.

Returns

The new symbol including the changes.

Applies to

Roslyn 4.13.0 és más verziók
Termék Verziók
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0