代码段架构参考

更新:2007 年 11 月

提供一个包含所有 IntelliSense 代码段 XML 架构元素的表,还附带每个元素的可用属性和子元素。

IntelliSense 代码段是预编写的代码片段,您可以随时使用 Visual Studio 2005 将这些代码片段插入到您的应用程序中。这些代码段减少了键入重复代码或搜索示例所用的时间,从而提高了工作效率。可以使用 IntelliSense 代码段 XML 架构创建自己的 Visual Basic、Visual C# 或 XML 代码段,并将它们添加到 Visual Studio 2005 已包含的代码段中。

IntelliSense 代码段架构元素

下表列出了所有 IntelliSense 代码段 XML 架构元素及其子元素和属性。

元素

子元素

属性

Assembly

--

--

Author

--

--

Code

--

Delimiter

Kind

Language

CodeSnippet

Header

Snippet

Format

CodeSnippets

CodeSnippets

--

Declarations

Literal

Object

--

Default

--

--

Description

--

--

Function

--

--

Header

Author

Description

HelpUrl

Keywords

Shortcut

SnippetTypes

Title

--

HelpUrl

--

--

ID

--

--

Import

Namespace

--

Imports

Import

--

Keyword

--

--

Keywords

Keyword

--

Literal

Default

Function

ID

Type

ToolTip

Editable

Namespace

--

--

Object

Default

Function

ID

Type

ToolTip

Editable

Reference

Assembly

Url

--

References

Reference

--

Shortcut

--

--

Snippet

Code

Declarations

Imports

References

--

SnippetType

--

--

SnippetTypes

SnippetType

--

Title

--

--

ToolTip

--

--

Type

--

--

Url

--

--

请参见

参考

创建和使用 IntelliSense 代码段

其他资源

Visual Studio XML 参考