This documentation is archived and is not being maintained.

References Element (IntelliSense Code Snippet) 

Groups individual Reference elements.

    <Reference>... </Reference>

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



Child Elements

Element Description


Optional element.

Contains information about assembly references for the code snippet. There may be zero or more Reference elements in a References element.

Parent Elements

Element Description


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

The References element is only supported for Visual Basic projects.

The References element in the following code snippet shows that the code snippet requires assembly references to System.Data.dll and System.Windows.Forms.dll.

<CodeSnippets xmlns="">
    <CodeSnippet Format="1.0.0">
            <Title>Create a data adapter</Title>
            <Description>Creates a SqlDataAdapter object.</Description>
            <Author>Microsoft Corporation</Author>
                <!-- Insert literal and object declarations here. -->
            <Code Language="VB">
                <!-- Insert code here. -->