WebMethodAttribute.Description 속성

정의

XML Web services 메서드를 설명하는 메시지입니다.

public:
 property System::String ^ Description { System::String ^ get(); void set(System::String ^ value); };
public string Description { get; set; }
member this.Description : string with get, set
Public Property Description As String

속성 값

XML Web services 메서드를 설명하는 메시지입니다. 기본값은 Empty입니다.

예제

아래 예제에서 문자열 Obtains the Server Computer Name 은 XML 웹 서비스의 서비스 설명 및 서비스 도움말 페이지에서 XML 웹 서비스 메서드를 설명하는 데 사용됩니다.

<%@ WebService Language="C#" Class="Util" %>
 
 using System;
 using System.Web.Services;
 
 public class Util: WebService {
    [ WebMethod(Description="Obtains the Server Computer Name",
    EnableSession=false)]
    public string GetMachineName() {
       return Server.MachineName;
    }   
 }
<%@ WebService Language="VB" Class="Util" %>

Imports System
Imports System.Web.Services

Public Class Util
    Inherits WebService

    <WebMethod(Description := "Obtains the Server Computer Name", _
        EnableSession := False)> _
    Public Function GetMachineName() As String
        
        Return Server.MachineName
    End Function
End Class

설명

설명 하는 메시지는 표시 XML 웹 서비스의 잠재 고객에 게 XML 웹 서비스 설명 문서 생성 되 면 서비스 설명과 서비스 도움말 페이지.

적용 대상

추가 정보