Udostępnij za pośrednictwem


Compilation.ContainsSymbolsWithName Method

Definition

Overloads

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

Return true if there is a source declaration symbol name that meets given predicate.

ContainsSymbolsWithName(String, SymbolFilter, CancellationToken)

Return true if there is a source declaration symbol name that matches the provided name. This may be faster than ContainsSymbolsWithName(Func<String,Boolean>, SymbolFilter, CancellationToken) when predicate is just a simple string check. name is case sensitive or not depending on the target language.

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

Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs

Return true if there is a source declaration symbol name that meets given predicate.

public abstract bool ContainsSymbolsWithName (Func<string,bool> predicate, Microsoft.CodeAnalysis.SymbolFilter filter = Microsoft.CodeAnalysis.SymbolFilter.TypeAndMember, System.Threading.CancellationToken cancellationToken = default);
abstract member ContainsSymbolsWithName : Func<string, bool> * Microsoft.CodeAnalysis.SymbolFilter * System.Threading.CancellationToken -> bool
Public MustOverride Function ContainsSymbolsWithName (predicate As Func(Of String, Boolean), Optional filter As SymbolFilter = Microsoft.CodeAnalysis.SymbolFilter.TypeAndMember, Optional cancellationToken As CancellationToken = Nothing) As Boolean

Parameters

predicate
Func<String,Boolean>
filter
SymbolFilter
cancellationToken
CancellationToken

Returns

Applies to

ContainsSymbolsWithName(String, SymbolFilter, CancellationToken)

Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs
Source:
Compilation.cs

Return true if there is a source declaration symbol name that matches the provided name. This may be faster than ContainsSymbolsWithName(Func<String,Boolean>, SymbolFilter, CancellationToken) when predicate is just a simple string check. name is case sensitive or not depending on the target language.

public abstract bool ContainsSymbolsWithName (string name, Microsoft.CodeAnalysis.SymbolFilter filter = Microsoft.CodeAnalysis.SymbolFilter.TypeAndMember, System.Threading.CancellationToken cancellationToken = default);
abstract member ContainsSymbolsWithName : string * Microsoft.CodeAnalysis.SymbolFilter * System.Threading.CancellationToken -> bool
Public MustOverride Function ContainsSymbolsWithName (name As String, Optional filter As SymbolFilter = Microsoft.CodeAnalysis.SymbolFilter.TypeAndMember, Optional cancellationToken As CancellationToken = Nothing) As Boolean

Parameters

name
String
filter
SymbolFilter
cancellationToken
CancellationToken

Returns

Applies to