WebHttpBehavior.HelpEnabled Propriedade

Definição

Recebe ou define um valor que determina se a página de Ajuda do WCF está ativada.

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

Valor de Propriedade

true se a página WCFHelp estiver ativada; caso contrário false.

Observações

Para mais informações sobre a página de Ajuda WCF REST, consulte a Página de Ajuda do Serviço HTTP WCF Web.

Para ativar o atributo helpEnabled num ficheiro de configuração:

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

Para ativar programaticamente a propriedade HelpEnableded:

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

Aplica-se a