ServiceHealthBehavior.TryParseHttpStatusCodeQueryParameter メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
クエリ文字列変数の HTTP 状態コードの解析を試み、解析操作が成功したかどうかを示す値を返します。
protected:
static bool TryParseHttpStatusCodeQueryParameter(System::String ^ parameterName, System::String ^ parameter, System::Net::HttpStatusCode defaultErrorCode, [Runtime::InteropServices::Out] System::Net::HttpStatusCode % result);
protected static bool TryParseHttpStatusCodeQueryParameter(string parameterName, string parameter, System.Net.HttpStatusCode defaultErrorCode, out System.Net.HttpStatusCode result);
static member TryParseHttpStatusCodeQueryParameter : string * string * System.Net.HttpStatusCode * HttpStatusCode -> bool
Protected Shared Function TryParseHttpStatusCodeQueryParameter (parameterName As String, parameter As String, defaultErrorCode As HttpStatusCode, ByRef result As HttpStatusCode) As Boolean
パラメーター
- parameterName
- String
メソッドが解析を試みる値を持つパラメーターの名前。
- parameter
- String
クエリ文字列のフィールドと値のペア。
- defaultErrorCode
- HttpStatusCode
解析操作が失敗した場合に引数に割り当てられる値。
- result
- HttpStatusCode
メソッドから制御が戻るときに、解析された HTTP 状態コード引数の値。
返品
true 解析操作が成功した場合。それ以外の場合は false。