AuthenticationHeaderValue.Parse(String) 方法

定义

将字符串转换为 AuthenticationHeaderValue 实例。Converts a string to an AuthenticationHeaderValue instance.

public:
 static System::Net::Http::Headers::AuthenticationHeaderValue ^ Parse(System::String ^ input);
public static System.Net.Http.Headers.AuthenticationHeaderValue Parse (string input);
public static System.Net.Http.Headers.AuthenticationHeaderValue Parse (string? input);
static member Parse : string -> System.Net.Http.Headers.AuthenticationHeaderValue
Public Shared Function Parse (input As String) As AuthenticationHeaderValue

参数

input
String

表示身份验证标头值信息的字符串。A string that represents authentication header value information.

返回

AuthenticationHeaderValue

一个 AuthenticationHeaderValue 实例。An AuthenticationHeaderValue instance.

例外

input 是一个 null 引用。input is a null reference.

input 是无效的身份验证标头值信息。input is not valid authentication header value information.

适用于