共用方式為


CSharpCompilation.GetSymbolsWithName Method

Definition

Overloads

GetSymbolsWithName(Func<String,Boolean>, SymbolFilter, CancellationToken)

Return source declaration symbols whose name meets given predicate.

GetSymbolsWithName(String, SymbolFilter, CancellationToken)

Return source declaration symbols whose name matches the provided name. This will be faster than GetSymbolsWithName(Func<String,Boolean>, SymbolFilter, CancellationToken) when predicate is just a simple string check. name is case sensitive.

GetSymbolsWithName(Func<String,Boolean>, SymbolFilter, CancellationToken)

Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs

Return source declaration symbols whose name meets given predicate.

public override System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ISymbol> GetSymbolsWithName (Func<string,bool> predicate, Microsoft.CodeAnalysis.SymbolFilter filter = Microsoft.CodeAnalysis.SymbolFilter.TypeAndMember, System.Threading.CancellationToken cancellationToken = default);
override this.GetSymbolsWithName : Func<string, bool> * Microsoft.CodeAnalysis.SymbolFilter * System.Threading.CancellationToken -> seq<Microsoft.CodeAnalysis.ISymbol>
Public Overrides Function GetSymbolsWithName (predicate As Func(Of String, Boolean), Optional filter As SymbolFilter = Microsoft.CodeAnalysis.SymbolFilter.TypeAndMember, Optional cancellationToken As CancellationToken = Nothing) As IEnumerable(Of ISymbol)

Parameters

predicate
Func<String,Boolean>
filter
SymbolFilter
cancellationToken
CancellationToken

Returns

Applies to

GetSymbolsWithName(String, SymbolFilter, CancellationToken)

Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs
Source:
CSharpCompilation.cs

Return source declaration symbols whose name matches the provided name. This will be faster than GetSymbolsWithName(Func<String,Boolean>, SymbolFilter, CancellationToken) when predicate is just a simple string check. name is case sensitive.

public override System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.ISymbol> GetSymbolsWithName (string name, Microsoft.CodeAnalysis.SymbolFilter filter = Microsoft.CodeAnalysis.SymbolFilter.TypeAndMember, System.Threading.CancellationToken cancellationToken = default);
override this.GetSymbolsWithName : string * Microsoft.CodeAnalysis.SymbolFilter * System.Threading.CancellationToken -> seq<Microsoft.CodeAnalysis.ISymbol>
Public Overrides Function GetSymbolsWithName (name As String, Optional filter As SymbolFilter = Microsoft.CodeAnalysis.SymbolFilter.TypeAndMember, Optional cancellationToken As CancellationToken = Nothing) As IEnumerable(Of ISymbol)

Parameters

name
String
filter
SymbolFilter
cancellationToken
CancellationToken

Returns

Applies to