SyntaxGenerator.GetNamespaceImports(SyntaxNode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the namespace imports that are part of the declaration.
public:
abstract System::Collections::Generic::IReadOnlyList<Microsoft::CodeAnalysis::SyntaxNode ^> ^ GetNamespaceImports(Microsoft::CodeAnalysis::SyntaxNode ^ declaration);
public abstract System.Collections.Generic.IReadOnlyList<Microsoft.CodeAnalysis.SyntaxNode> GetNamespaceImports (Microsoft.CodeAnalysis.SyntaxNode declaration);
abstract member GetNamespaceImports : Microsoft.CodeAnalysis.SyntaxNode -> System.Collections.Generic.IReadOnlyList<Microsoft.CodeAnalysis.SyntaxNode>
Public MustOverride Function GetNamespaceImports (declaration As SyntaxNode) As IReadOnlyList(Of SyntaxNode)
Parameters
- declaration
- SyntaxNode