Udostępnij za pośrednictwem


Element słowa kluczowe (urywki kodu IntelliSense)

Poszczególnych grup słowa kluczowego elementy.

<Keywords>
    <Keyword>... </Keyword>
    <Keyword>... </Keyword>
<Keywords>

Atrybuty i elementy

W poniższych sekcjach opisano atrybuty i elementy podrzędne elementy nadrzędne.

Atrybuty

Brak.

Elementy podrzędne

Element

Opis

Słowo kluczowe

Opcjonalnego elementu.

Zawiera poszczególne słowa kluczowe dla wstawki kodu programu.Może istnieć zero lub więcej Keyword elementów w Keywords element.

Elementy nadrzędne

Element

Opis

Nagłówek

Zawiera ogólne informacje na temat wstawki kodu programu.

Uwagi

Słowa kluczowe wstawki kodu są używane przez Visual Studio i reprezentują standardowy sposób dla dostawców treści online dodać niestandardowe słowa kluczowe wyszukiwania lub kategoryzacji.

Przykład

Poniższy kod zawiera słowa kluczowe File copying i Copying files.

<CodeSnippets xmlns="https://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>Copy File</Title>
            <Author>Microsoft Corporation</Author>
            <Description>Copies a file and saves it as another file.</Description>
            <HelpUrl>www.microsoft.com</HelpUrl>
            <SnippetTypes>
                <SnippetType>Expansion</SnippetType>
            </SnippetTypes>
            <Keywords>
                 <Keyword>File copying</Keyword>
                 <Keyword>Copying files</Keyword>
            </Keywords>
            <Shortcut>copyfile</Shortcut>
        </Header>
        <Snippet>
            <!-- Insert snippet information here -->
        </Snippet>
    </CodeSnippet>
</CodeSnippets>

Zobacz też

Koncepcje

Odwołanie schematu wstawek kodu