Share via


HttpExpectationHeaderValue.TryParse Method

Definition

Determines whether a string is valid HttpCredentialsHeaderValue information.

public:
 static bool TryParse(Platform::String ^ input, [Out] HttpExpectationHeaderValue ^ & expectationHeaderValue);
 static bool TryParse(winrt::hstring const& input, [Out] HttpExpectationHeaderValue const& & expectationHeaderValue);
public static bool TryParse(string input, out HttpExpectationHeaderValue expectationHeaderValue);
Public Shared Function TryParse (input As String, ByRef expectationHeaderValue As HttpExpectationHeaderValue) As Boolean

Parameters

input
String

Platform::String

winrt::hstring

The string to validate.

expectationHeaderValue
HttpExpectationHeaderValue

The HttpExpectationHeaderValue version of the string.

Returns

Boolean

bool

true if input is valid HttpExpectationHeaderValue information; otherwise, false.

Applies to