This documentation is archived and is not being maintained.

Import Element (IntelliSense Code Snippets) 

Specifies the imported namespaces used by an IntelliSense Code Snippet.

    <Namespace>... </Namespace>

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



Child Elements

Element Description


Required element.

Specifies the namespace used by the code snippet. There must be exactly one Namespace element in an Import element.

Parent Elements

Element Description


Grouping element for Import elements.

The Imports element is only supported for Visual Basic projects.

The following example shows a code snippet that imports the namespace System.Data.

<CodeSnippets xmlns="">
    <CodeSnippet Format="1.0.0">
            <!-- Insert Header information here. -->
                <!-- Insert literal and object declarations here. -->
            <Code Language="VB">
                <!-- Insert code here. -->