WebHttpBehavior.HelpEnabled Propiedad

Definición

Obtiene o establece un valor que determina si la página de ayuda de 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 de propiedad

true si la página WCFHelp está habilitada; de lo contrario false, es .

Comentarios

Para obtener más información sobre la página de ayuda de REST de WCF, vea Página de ayuda del servicio HTTP web de WCF.

Para habilitar el atributo helpEnabled en un archivo de configuración:

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

Para habilitar mediante programación la propiedad HelpEnabled:

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

Se aplica a