共用方式為


VisualBasicExtensions.GetPreprocessingSymbolInfo 方法

定義

如果指定的節點位於前置處理指示詞內,則取得其前置處理符號資訊。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::CodeAnalysis::PreprocessingSymbolInfo GetPreprocessingSymbolInfo(Microsoft::CodeAnalysis::SemanticModel ^ semanticModel, Microsoft::CodeAnalysis::VisualBasic::Syntax::IdentifierNameSyntax ^ node);
public static Microsoft.CodeAnalysis.PreprocessingSymbolInfo GetPreprocessingSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.VisualBasic.Syntax.IdentifierNameSyntax node);
static member GetPreprocessingSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.VisualBasic.Syntax.IdentifierNameSyntax -> Microsoft.CodeAnalysis.PreprocessingSymbolInfo
<Extension()>
Public Function GetPreprocessingSymbolInfo (semanticModel As SemanticModel, node As IdentifierNameSyntax) As PreprocessingSymbolInfo

參數

semanticModel
SemanticModel

傳回

適用於