共用方式為


SemanticModel.GetPreprocessingSymbolInfoCore(SyntaxNode) 方法

定義

如果 nameSyntax 是識別碼名稱語法節點,則傳 PreprocessingSymbolInfo 回與其對應的 。

protected:
 abstract Microsoft::CodeAnalysis::PreprocessingSymbolInfo GetPreprocessingSymbolInfoCore(Microsoft::CodeAnalysis::SyntaxNode ^ nameSyntax);
protected abstract Microsoft.CodeAnalysis.PreprocessingSymbolInfo GetPreprocessingSymbolInfoCore (Microsoft.CodeAnalysis.SyntaxNode nameSyntax);
abstract member GetPreprocessingSymbolInfoCore : Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.PreprocessingSymbolInfo
Protected MustOverride Function GetPreprocessingSymbolInfoCore (nameSyntax As SyntaxNode) As PreprocessingSymbolInfo

參數

nameSyntax
SyntaxNode

要取得語意資訊的 nameSyntax 節點。

傳回

適用於