言語

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

プロパティ値

true WCFHelp ページが有効な場合は 〟。それ以外の場合は false

注釈

WCF REST ヘルプ ページの詳細については、「 WCF Web 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);

適用対象