共用方式為


VisualBasicExtensions.GetCollectionRangeVariableSymbolInfo 方法

定義

傳回與 CollectionRangeVariableSyntax 相關聯的方法相關資訊。

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

參數

semanticModel
SemanticModel
cancellationToken
CancellationToken

傳回

適用於