WebHttpBehavior.HelpEnabled Vlastnost

Definice

Získá nebo nastaví hodnotu, která určuje, zda je povolena stránka nápovědy 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

Hodnota vlastnosti

true pokud je stránka WCFHelp povolena; jinak false.

Poznámky

Další informace o stránce nápovědy k rozhraní REST WCF naleznete na stránce nápovědy webové služby HTTP WCF.

Povolení atributu helpEnabled v konfiguračním souboru:

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

Programové povolení vlastnosti HelpEnabled:

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

Platí pro