AuthenticationHeaderValue 생성자

정의

AuthenticationHeaderValue 클래스의 새 인스턴스를 초기화합니다.

오버로드

AuthenticationHeaderValue(String)

AuthenticationHeaderValue 클래스의 새 인스턴스를 초기화합니다.

AuthenticationHeaderValue(String, String)

AuthenticationHeaderValue 클래스의 새 인스턴스를 초기화합니다.

AuthenticationHeaderValue(String)

Source:
AuthenticationHeaderValue.cs
Source:
AuthenticationHeaderValue.cs
Source:
AuthenticationHeaderValue.cs

AuthenticationHeaderValue 클래스의 새 인스턴스를 초기화합니다.

public:
 AuthenticationHeaderValue(System::String ^ scheme);
public AuthenticationHeaderValue (string scheme);
new System.Net.Http.Headers.AuthenticationHeaderValue : string -> System.Net.Http.Headers.AuthenticationHeaderValue
Public Sub New (scheme As String)

매개 변수

scheme
String

권한 부여에 사용할 체계입니다.

설명

예:

HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(ACCESS_TOKEN);
Dim client = New HttpClient()
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(ACCESS_TOKEN)

다음 헤더를 생성합니다.

Authorization: ACCESS_TOKEN

적용 대상

AuthenticationHeaderValue(String, String)

Source:
AuthenticationHeaderValue.cs
Source:
AuthenticationHeaderValue.cs
Source:
AuthenticationHeaderValue.cs

AuthenticationHeaderValue 클래스의 새 인스턴스를 초기화합니다.

public:
 AuthenticationHeaderValue(System::String ^ scheme, System::String ^ parameter);
public AuthenticationHeaderValue (string scheme, string parameter);
public AuthenticationHeaderValue (string scheme, string? parameter);
new System.Net.Http.Headers.AuthenticationHeaderValue : string * string -> System.Net.Http.Headers.AuthenticationHeaderValue
Public Sub New (scheme As String, parameter As String)

매개 변수

scheme
String

권한 부여에 사용할 체계입니다.

parameter
String

요청되는 리소스에 대한 사용자 에이전트의 인증 정보를 포함하는 자격 증명입니다.

설명

예:

HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", ACCESS_TOKEN);
Dim client = new HttpClient()
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", ACCESS_TOKEN)

다음 헤더를 생성합니다.

Authorization: Bearer ACCESS_TOKEN

적용 대상