共用方式為


Url 項目 (IntelliSense 程式碼片段)

指定可提供參考組件詳細資訊的 URL。

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

屬性和項目

下列各節將說明屬性、子項目和父項目。

屬性

無。

子項目

無。

父項目

項目

描述

Reference

指定程式碼片段所需的組件參考。

文字值

需要文字值。

此文字可指定具有參考組件詳細資訊的 URL。 當參考無法加入專案時就會顯示 URL。

備註

只在 Visual Basic 專案中才支援 Url 項目。

範例

在下列範例中的 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>

請參閱

概念

程式碼片段結構描述參考