ServiceHealthBehavior.TryParseBooleanQueryParameter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to parse a Boolean query string parameter and returns a value that indicates whether the parsing operation succeeded.
protected:
static bool TryParseBooleanQueryParameter(System::String ^ parameterName, System::String ^ parameter, bool defaultValue, [Runtime::InteropServices::Out] bool % result);
protected static bool TryParseBooleanQueryParameter (string parameterName, string parameter, bool defaultValue, out bool result);
static member TryParseBooleanQueryParameter : string * string * bool * bool -> bool
Protected Shared Function TryParseBooleanQueryParameter (parameterName As String, parameter As String, defaultValue As Boolean, ByRef result As Boolean) As Boolean
Parameters
- parameterName
- String
The name of the parameter whose value the method attempts to parse.
- parameter
- String
The field/value pair of the query string.
- defaultValue
- Boolean
The value to be assigned to the result
argument if the parsing operation fails.
- result
- Boolean
When the method returns, the value of the parsed Boolean argument.
Returns
true
if the parsing operation succeeded; otherwise, false
.
Exceptions
Remarks
The method returns true
if the value of the field was successfully parsed by the Boolean.TryParse method.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기