WebHttpBehavior.HelpEnabled Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit une valeur qui détermine si la page d’aide WCF est activée.
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
Valeur de propriété
true si la page WCFHelp est activée ; sinon false.
Remarques
Pour plus d’informations sur la page d’aide REST WCF, consultez la page d’aide du service HTTP web WCF.
Pour activer l’attribut helpEnabled dans un fichier de configuration :
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="MyEndpointBehavior">
<webHttp helpEnabled="true" />
</behavior>
</endpointBehaviors>
</system.serviceModel>
Pour activer par programmation la propriété HelpEnabled :
WebHttpBehavior helpBehavior = new WebHttpBehavior();
helpBehavior.HelpEnabled = true;
host.Description.Endpoints[0].Behaviors.Add(helpBehavior);