自定义类属性/方法的工具提示 [英] Tooltip for custom class properties/methods

查看:66
本文介绍了自定义类属性/方法的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何向自定义类的属性和方法添加信息,以便在创建类的实例时

,VS.NET intelliSense将显示
$ b从下拉列表中浏览成员时,工具提示中的$ b信息。


这是通过用属性标记属性/方法来完成的吗?如果是这样,

哪个以及如何?

How do I add information to a custom class''s properties and methods so that
when an instance of the class is made the VS.NET intelliSense will show the
information in a tooltip as the members are browsed from the drop-down list.

Is this done by marking the property/method with some attribute? If so,
which and how?

推荐答案

" Scott M." < S - *** @ badspamsnet.net> scripsit:
"Scott M." <s-***@badspamsnet.net> scripsit:
如何向自定义类的属性和方法添加信息,以便在创建类的实例时,VS.NET intelliSense将显示
从下拉列表中浏览成员时工具提示中的信息。
How do I add information to a custom class''s properties and methods so that
when an instance of the class is made the VS.NET intelliSense will show the
information in a tooltip as the members are browsed from the drop-down list.




我的XML注释常见问题解答:


VB评论者

< http://www.gotdotnet.com/team/ide/>

- >部分VB Commenter

XML文档

< http://www.gotdotnet.com/team/vb/>

- >部分XML文档


VBXC - VB.NET XML评论员

< http://vbxmldoc.tor-erik.net/index.shtml> ;


NDOC(原DOC.NET)

< http://ndoc.sourceforge.net/>


VB.DOC

< http://vb-doc.sourceforge.net/>


-

Herfried K. Wagner

MVP·VB Classic,VB.NET

< http://www.mvps.org/dotnet>



My XML Comments FAQ:

VB Commenter
<http://www.gotdotnet.com/team/ide/>
-> section "VB Commenter"

XML Documentation
<http://www.gotdotnet.com/team/vb/>
-> section "XML Documentation"

VBXC - VB.NET XML Commentor
<http://vbxmldoc.tor-erik.net/index.shtml>

NDOC (formerly DOC.NET)
<http://ndoc.sourceforge.net/>

VB.DOC
<http://vb-doc.sourceforge.net/>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


嗨斯科特,


除了Herfried的建议之外,我建议你也可以拿一个

查看XML文档工具

http://msdn.microsoft.com/library/de...-us/dnvssamp/h

tml / vbcs_XMLComments.asp)。


希望这会有所帮助。


问候,


HuangTM

Microsoft在线合作伙伴支持

MCSE / M. CSD


安全! - www.microsoft.com/security

发布是按原样提供的。没有保证,也没有授予任何权利。

Hi Scott,

In addtion to Herfried''s suggestions, I suggest that you can also take a
look at XML Documentation Tool
(http://msdn.microsoft.com/library/de...-us/dnvssamp/h
tml/vbcs_XMLComments.asp).

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


谢谢Herfried,但我不是在寻找一个工具来为我做这件事,我会的比如

知道如何手动实现这一点。

" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道

news:uU ************** @ TK2MSFTNGP10.phx.gbl ...
Thanks Herfried, but I''m not looking for a tool to do this for me, I''d like
to know how to manually make this happen.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
" Scott M. " < S - *** @ badspamsnet.net> scripsit:
"Scott M." <s-***@badspamsnet.net> scripsit:
如何将信息添加到自定义类的属性和方法中,以便
当创建类的实例时,VS.NET intelliSense将显示
从下拉列表
How do I add information to a custom class''s properties and methods so that when an instance of the class is made the VS.NET intelliSense will show the information in a tooltip as the members are browsed from the drop-down


列表浏览成员时工具提示中的信息。
我的XML评论常见问题解答:

VB评论者
< http://www.gotdotnet.com/team/ide/>
- >部分VB评论者

XML文档
< http://www.gotdotnet.com/team/vb/>
- >部分XML文档

VBXC - VB.NET XML评论员
< http://vbxmldoc.tor-erik.net/index.shtml>
NDOC(原DOC.NET)
< http://ndoc.sourceforge.net/>

VB.DOC
< http:// vb-doc .sourceforge.net />

- Herfried K. Wagner
MVP·VB Classic,VB.NET
< http://www.mvps .org / dotnet>

list.
My XML Comments FAQ:

VB Commenter
<http://www.gotdotnet.com/team/ide/>
-> section "VB Commenter"

XML Documentation
<http://www.gotdotnet.com/team/vb/>
-> section "XML Documentation"

VBXC - VB.NET XML Commentor
<http://vbxmldoc.tor-erik.net/index.shtml>

NDOC (formerly DOC.NET)
<http://ndoc.sourceforge.net/>

VB.DOC
<http://vb-doc.sourceforge.net/>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>



这篇关于自定义类属性/方法的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆