WebServiceAttribute.Description Property
A descriptive message for the XML Web service.
[Visual Basic] Public Property Description As String [C#] public string Description {get; set;} [C++] public: __property String* get_Description(); public: __property void set_Description(String*); [JScript] public function get Description() : String; public function set Description(String);
Property Value
The text describing the functionality of the XML Web service.
Remarks
The descriptive message is displayed to prospective consumers of the XML Web service when description documents for the XML Web service are generated, such as the Service Description and the Service help page.
Example
[Visual Basic, C#] The following example sets the Description property to " Common Server
Variables ".
[Visual Basic] <%@ WebService Language="VB" Class= "ServerVariables"%> Imports System Imports System.Web.Services <WebService(Description := "Common Server Variables", _ Namespace := "http://www.contoso.com/")> _ Public Class ServerVariables Inherits WebService <WebMethod(Description := "Obtains the Computer Machine Name", _ EnableSession := False)> _ Public Function GetMachineName() As String Return Server.MachineName End Function End Class [C#] <%@ WebService Language="C#" Class= "ServerVariables"%> using System; using System.Web.Services; [ WebService(Description="Common Server Variables",Namespace="http://www.contoso.com/")] public class ServerVariables: WebService { [ WebMethod(Description="Obtains the Server Computer Name",EnableSession=false)] public string GetMachineName() { return Server.MachineName; } }
[C++, JScript] No example is available for C++ or JScript. To view a Visual Basic or C# example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
WebServiceAttribute Class | WebServiceAttribute Members | System.Web.Services Namespace | WebMethodAttribute