当我应该使用WebService属性System.ComponentModel.ToolboxItem(假) [英] when should I use the Webservice attribute System.ComponentModel.ToolboxItem(false)

查看:1232
本文介绍了当我应该使用WebService属性System.ComponentModel.ToolboxItem(假)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们什么时候该属性添加到一个asp.net web服务?

  [System.ComponentModel.ToolboxItem(假)]


解决方案

不知道都怎么这与web服务做的。

查看的ToolboxItem 在MSDN。你提到的 构造函数,用于指定工具箱项的默认类型通常用于自定义控件。

作为MSDN上例子你可以使用这个属性来定制你的用户控件如何显示了Visual Studio工具箱。

When should we add this attribute to an asp.net webservice ?

[System.ComponentModel.ToolboxItem(false)]  

Not sure at all how this has to do with a webservice.

See the ToolboxItem at MSDN. The constructor you mentioned, is used to specify a default type of toolbox item typically for a custom control.

As in this example on MSDN you can use this attribute to customize how your UserControl shows on the Visual Studio toolbox.

这篇关于当我应该使用WebService属性System.ComponentModel.ToolboxItem(假)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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