HttpCredentialsHeaderValue.Parse(String) HttpCredentialsHeaderValue.Parse(String) HttpCredentialsHeaderValue.Parse(String) HttpCredentialsHeaderValue.Parse(String) HttpCredentialsHeaderValue.Parse(String) Method

Definition

Converts a string to an HttpCredentialsHeaderValue instance.

public : static HttpCredentialsHeaderValue Parse(Platform::String input)
static HttpCredentialsHeaderValue Parse(winrt::hstring input) const;
public static HttpCredentialsHeaderValue Parse(String input)
Public Shared Function Parse(input As String) As HttpCredentialsHeaderValue
var httpCredentialsHeaderValue = Windows.Web.Http.Headers.HttpCredentialsHeaderValue.parse(input);

Parameters

input
String String String

A string that represents the credential information in the Authorization or Proxy-Authorization HTTP header.

Returns

Remarks

Below are the exceptions that this function throws.

E_INVALIDARG

The input parameter is null (Nothing in Visual Basic).

The input parameter is not valid credential information.