This documentation is archived and is not being maintained.

Reference Element (IntelliSense Code Snippets) 

Specifies information about the assembly references required by the code snippet.

    <Assembly>... </Assembly>
    <Url>... </Url>

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



Child Elements

Element Description


Required element.

Contains the name of the assembly referenced by the code snippet. There must be exactly one Assembly element in a Reference element.


Optional element.

Contains a URL that provides more information about the referenced assembly. There may be zero or one Url elements in a Reference element.

Parent Elements

Element Description


Grouping element for Reference elements.

The Reference element is only supported for Visual Basic projects.

The Reference element in the following code snippet shows that the code snippet requires an assembly reference to System.Data.dll.

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