Import Element (IntelliSense Code Snippets)
Visual Studio 2005
Specifies the imported namespaces used by an IntelliSense Code Snippet.
<Import>
<Namespace>... </Namespace>
</Import>
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
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 following example shows a code snippet that imports the namespace System.Data.
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<!-- Insert Header information here. -->
</Header>
<Snippet>
<Imports>
<Import>
<Namespace>System.Data</Namespace>
</Import>
</Imports>
<Declarations>
<!-- Insert literal and object declarations here. -->
</Declarations>
<Code Language="VB">
<!-- Insert code here. -->
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>