when should I use the Webservice attribute System.ComponentModel.ToolboxItem(false)
When should we a开发者_StackOverflow社区dd 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.
精彩评论