共用方式為


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 節點。

傳回

適用於