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

Boolean

true Si la página WCFHelp está habilitada; en caso contrario, false .

Comentarios

Para obtener más información acerca de la página de ayuda de WCF REST, consulte la Página de ayuda del servicio Web http 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 la propiedad HelpEnabled mediante programación:

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

Se aplica a