다음을 통해 공유


ServiceHealthBehavior.TryParseHttpStatusCodeQueryParameter 메서드

정의

쿼리 문자열 변수의 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 상태 코드 인수의 값입니다.

반환

Boolean

구문 분석 작업에 성공한 경우 true이고, 그렇지 않으면 false입니다.

예외

parameterName이(가) null인 경우

또는

parameter이(가) null인 경우

적용 대상