This documentation is archived and is not being maintained.

Assembly Element (IntelliSense Code Snippets)

Specifies the name of the assembly referenced by the code snippet.


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



Child Elements


Parent Elements




Contains information about assembly references required by the code snippet.

A text value is required.

This text specifies the assembly that the code snippet references.

The Assembly element is only supported by Visual Basic code snippets.

The text value of the Assembly element is either the friendly text name of the assembly, such as System.dll, or its strong name, such as System,Version=,Culture=neutral,PublicKeyToken=9b35aa323c18d4fb1.

The following code snippet references the assembly System.Data.dll. When the code snippet is inserted, this reference will be added to the project.

<CodeSnippets xmlns="">
    <CodeSnippet Format="1.0.0">
            <Title>Create a data adapter</Title>
            <Description>Creates a SqlDataAdapter object.</Description>
            <Author>Microsoft Corporation</Author>
                    <ToolTip>Replace with a SQL connection string.</ToolTip>
                    <Default>"SQL connection string"</Default>
                    <ToolTip>Replace with a connection object in your application.</ToolTip>
            <Code Language="VB">
                    daCustomers = new SqlClient.SqlDataAdapter();
                    selectCommand = new SqlClient.SqlCommand($SQL$);
                    daCustomers.SelectCommand = selectCommand;
                    daCustomers.SelectCommand.Connection = $Connection$;