When should we add this attribute to an asp.net webservice ?
[System.ComponentModel.ToolboxItem(false)]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.