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 节点。

返回

适用于