Share via


HttpCredentialsHeaderValue.TryParse Method

Definition

Determines whether a string is valid HttpCredentialsHeaderValue information.

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

Parameters

input
String

Platform::String

winrt::hstring

The string to validate.

credentialsHeaderValue
HttpCredentialsHeaderValue

The HttpCredentialsHeaderValue version of the string.

Returns

Boolean

bool

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

Applies to