WebHttpBehavior.HelpEnabled 속성

정의

WCF 도움말 페이지를 사용할 수 있는지 여부를 결정하는 값을 가져오거나 설정합니다.

public:
 virtual property bool HelpEnabled { bool get(); void set(bool value); };
public virtual bool HelpEnabled { get; set; }
member this.HelpEnabled : bool with get, set
Public Overridable Property HelpEnabled As Boolean

속성 값

WCFHelp 페이지를 사용하도록 설정하면 .

설명

WCF REST 도움말 페이지에 대한 자세한 내용은 WCF 웹 HTTP 서비스 도움말 페이지를 참조하세요.

구성 파일에서 helpEnabled 특성을 사용하도록 설정하려면 다음을 수행합니다.

<system.serviceModel>
    <behaviors>
        <endpointBehaviors>
            <behavior name="MyEndpointBehavior">
                <webHttp helpEnabled="true" />
            </behavior>
    </endpointBehaviors>
</system.serviceModel>

HelpEnabled 속성을 프로그래밍 방식으로 사용하도록 설정하려면 다음을 수행합니다.

WebHttpBehavior helpBehavior = new WebHttpBehavior();
helpBehavior.HelpEnabled = true;
host.Description.Endpoints[0].Behaviors.Add(helpBehavior);

적용 대상