Partager via


ServiceHealthBehavior.GetHttpResponseCode(ServiceHostBase, String[]) Méthode

Définition

Analyse les champs de la chaîne de requête et retourne son code de réponse HTTP défini.

protected:
 virtual System::Net::HttpStatusCode GetHttpResponseCode(System::ServiceModel::ServiceHostBase ^ serviceHost, cli::array <System::String ^> ^ queries);
protected virtual System.Net.HttpStatusCode GetHttpResponseCode (System.ServiceModel.ServiceHostBase serviceHost, string[] queries);
abstract member GetHttpResponseCode : System.ServiceModel.ServiceHostBase * string[] -> System.Net.HttpStatusCode
override this.GetHttpResponseCode : System.ServiceModel.ServiceHostBase * string[] -> System.Net.HttpStatusCode
Protected Overridable Function GetHttpResponseCode (serviceHost As ServiceHostBase, queries As String()) As HttpStatusCode

Paramètres

serviceHost
ServiceHostBase

Instance de l’hôte de service qui contient le service WCF avec le ServiceHealthBehavior activé.

queries
String[]

Tableau qui contient les paires champ/valeur de la chaîne de requête.

Retours

Code de réponse HTTP.

Exceptions

serviceHost a la valeur null.

S’applique à