Url 元素(IntelliSense 代码段)

指定提供有关被引用程序集的更多信息的 URL。

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

特性和元素

以下几节描述了特性、子元素和父元素。

特性

无。

子元素

无。

父元素

元素

说明

引用

指定代码段所需的程序集引用。

文本值

需要一个文本值。

此文本指定包含有关被引用程序集的更多信息的 URL。 在无法向项目添加引用时会显示此 URL。

备注

Url 元素仅在 Visual Basic 项目中受支持。

示例

下面的示例中的 Url 元素包含的值为 https://www.microsoft.com.,此 URL 包含有关 System.Data.dll 程序集的更多信息。

<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>

请参见

概念

代码段架构参考