共用方式為


VisualBasicExtensions.GetSymbolInfo 方法

定義

多載

GetSymbolInfo(SemanticModel, CrefReferenceSyntax, CancellationToken)

取得對應的 SymbolInfo,其中包含指定 CrefReferenceSyntax 的語意資訊。

GetSymbolInfo(SemanticModel, OrderingSyntax, CancellationToken)

會傳回與 OrderingSyntax 相關聯的 OrderBy/OrderByDescending/ThenBy/ThenByDescending 方法。

GetSymbolInfo(SemanticModel, QueryClauseSyntax, CancellationToken)

傳回查詢子句的符號資訊。

GetSymbolInfo(SemanticModel, FunctionAggregationSyntax, CancellationToken)

傳回與 FunctionAggregationSyntax 相關聯的彙總函式。

GetSymbolInfo(SemanticModel, AttributeSyntax, CancellationToken)

取得對應的 SymbolInfo,其中包含指定 AttributeSyntax 的語意資訊。

GetSymbolInfo(SemanticModel, ExpressionRangeVariableSyntax, CancellationToken)

傳回與 內 LetClauseSyntax 相關聯的 ExpressionRangeVariableSyntax Select 方法, Microsoft.CodeAnalysis.SymbolInfo.None 否則為 。

GetSymbolInfo(SemanticModel, ExpressionSyntax, CancellationToken)

取得對應的 SymbolInfo,其中包含指定 ExpressionSyntax 的語意資訊。

GetSymbolInfo(SemanticModel, CrefReferenceSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

取得對應的 SymbolInfo,其中包含指定 CrefReferenceSyntax 的語意資訊。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.CrefReferenceSyntax crefReference, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.CrefReferenceSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, crefReference As CrefReferenceSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

參數

semanticModel
SemanticModel
crefReference
CrefReferenceSyntax
cancellationToken
CancellationToken

傳回

適用於

GetSymbolInfo(SemanticModel, OrderingSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

會傳回與 OrderingSyntax 相關聯的 OrderBy/OrderByDescending/ThenBy/ThenByDescending 方法。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.OrderingSyntax orderingSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.OrderingSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, orderingSyntax As OrderingSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

參數

semanticModel
SemanticModel
orderingSyntax
OrderingSyntax
cancellationToken
CancellationToken

傳回

適用於

GetSymbolInfo(SemanticModel, QueryClauseSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

傳回查詢子句的符號資訊。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.QueryClauseSyntax clauseSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.QueryClauseSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, clauseSyntax As QueryClauseSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

參數

semanticModel
SemanticModel
clauseSyntax
QueryClauseSyntax
cancellationToken
CancellationToken

傳回

備註

語法節點類型傳回的符號資訊
DistinctClauseSyntax 傳回與 DistinctClauseSyntax 相關聯的 Distinct 方法。
WhereClauseSyntax 傳回與 相關聯的 WhereClauseSyntax Where 方法。
PartitionWhileClauseSyntax 會傳回與 PartitionWhileClauseSyntax 相關聯的 TakeWhile/SkipWhile 方法。
PartitionClauseSyntax 傳回與 PartitionClauseSyntax 相關聯的 Take/Skip 方法。
GroupByClauseSyntax 傳回與 GroupByClauseSyntax 相關聯的 GroupBy 方法。
JoinClauseSyntax 傳回與 JoinClauseSyntax 相關聯的 Join/GroupJoin 方法。
SelectClauseSyntax 傳回與 SelectClauseSyntax 相關聯的 Select 方法,如果沒有 Microsoft.CodeAnalysis.SymbolInfo.None 則傳回 。
FromClauseSyntax 會傳回與 FromClauseSyntax 相關聯的 Select 方法,這個方法只有一個,而且是 內唯一 CollectionRangeVariableSyntaxQueryExpressionSyntax 查詢子句。 否則為 Microsoft.CodeAnalysis.SymbolInfo.None。 編譯器會插入方法呼叫,以確保查詢轉譯為至少一個方法呼叫。
LetClauseSyntax Microsoft.CodeAnalysis.SymbolInfo.None
OrderByClauseSyntax Microsoft.CodeAnalysis.SymbolInfo.None
AggregateClauseSyntax Microsoft.CodeAnalysis.SymbolInfo.None. 請改用 GetAggregateClauseSymbolInfo(SemanticModel, AggregateClauseSyntax, CancellationToken)

適用於

GetSymbolInfo(SemanticModel, FunctionAggregationSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

傳回與 FunctionAggregationSyntax 相關聯的彙總函式。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.FunctionAggregationSyntax functionSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.FunctionAggregationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, functionSyntax As FunctionAggregationSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

參數

semanticModel
SemanticModel
functionSyntax
FunctionAggregationSyntax
cancellationToken
CancellationToken

傳回

適用於

GetSymbolInfo(SemanticModel, AttributeSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

取得對應的 SymbolInfo,其中包含指定 AttributeSyntax 的語意資訊。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax attribute, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, attribute As AttributeSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

參數

semanticModel
SemanticModel
attribute
AttributeSyntax
cancellationToken
CancellationToken

傳回

適用於

GetSymbolInfo(SemanticModel, ExpressionRangeVariableSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

傳回與 內 LetClauseSyntax 相關聯的 ExpressionRangeVariableSyntax Select 方法, Microsoft.CodeAnalysis.SymbolInfo.None 否則為 。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionRangeVariableSyntax variableSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionRangeVariableSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, variableSyntax As ExpressionRangeVariableSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

參數

semanticModel
SemanticModel
cancellationToken
CancellationToken

傳回

適用於

GetSymbolInfo(SemanticModel, ExpressionSyntax, CancellationToken)

Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb
Source:
VisualBasicExtensions.vb

取得對應的 SymbolInfo,其中包含指定 ExpressionSyntax 的語意資訊。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax expression, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, expression As ExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

參數

semanticModel
SemanticModel
expression
ExpressionSyntax
cancellationToken
CancellationToken

傳回

適用於