SemanticModel.GetPreprocessingSymbolInfo(SyntaxNode) 方法

定义

如果 nameSyntax 为标识符名称语法节点,则返回 PreprocessingSymbolInfo 与其对应的名称。

public:
 Microsoft::CodeAnalysis::PreprocessingSymbolInfo GetPreprocessingSymbolInfo(Microsoft::CodeAnalysis::SyntaxNode ^ nameSyntax);
public Microsoft.CodeAnalysis.PreprocessingSymbolInfo GetPreprocessingSymbolInfo (Microsoft.CodeAnalysis.SyntaxNode nameSyntax);
member this.GetPreprocessingSymbolInfo : Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.PreprocessingSymbolInfo
Public Function GetPreprocessingSymbolInfo (nameSyntax As SyntaxNode) As PreprocessingSymbolInfo

参数

nameSyntax
SyntaxNode

要获取其语义信息的 nameSyntax 节点。

返回

适用于