WebHttpBehavior.HelpEnabled Propriedade

Definição

Obtém ou define um valor que determina se a página de Ajuda do WCF está habilitada.

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 da propriedade

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

Comentários

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

Para habilitar o atributo helpEnabled em um arquivo de configuração:

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

Para habilitar programaticamente a propriedade HelpEnabled:

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

Aplica-se a