Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Imports Element (IntelliSense Code Snippets)

Imports Element (IntelliSense Code Snippets) 

Groups individual Import elements.

    <Import>... </Import>

The following sections describe attributes, child elements, and parent elements.



Child Elements

Element Description


Optional element.

Contains the imported namespaces for the code snippet. There may be zero or more Import elements in an Imports element.

Parent Elements

Element Description


Contains the references, imports, declarations, and code for the code snippet.

The Imports element is only supported for Visual Basic projects.

The following example shows a code snippet that requires the namespaces System.Data and System.Xml to be imported.

<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
            <!-- Insert Header information here. -->
                <!-- Insert literal and object declarations here. -->
            <Code Language="VB">
                <!-- Insert code here. -->

Community Additions

© 2015 Microsoft