Поделиться через


Url Element (IntelliSense Code Snippets)

Specifies a URL that provides more information about the referenced assembly.

<CodeSnippets>
  <CodeSnippet>
    <Snippet>
      <References>
        <Reference>
          <Url>

<Url>
    www.microsoft.com
</Url>

Attributes and Elements

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

Attributes

None.

Child Elements

None.

Parent Elements

Element

Description

Reference

Specifies the assembly references required by the code snippet.

Text Value

A text value is required.

This text specifies a URL with more information about the referenced assembly. This URL is displayed when the reference cannot be added to the project.

Remarks

The Url element is only supported for Visual Basic projects.

Example

The Url element in the following example contains the value https://www.microsoft.com. This URL contains more information about the System.Data.dll assembly.

<CodeSnippets xmlns="https://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <!-- Insert Header information here -->
        </Header>
        <Snippet>
            <References>
                <Reference>
                    <Assembly>System.Data.dll</Assembly>
                    <Url>www.microsoft.com</Url>
                </Reference>
            </References>
            <Declarations>
                <!-- Insert literal and object declarations here. -->
            </Declarations>
            <Code Language="VB">
                <!-- Insert code here. -->
            </Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>

See Also

Concepts

Code Snippets Schema Reference