Skip to main content
HttpChallengeHeaderValue.HttpChallengeHeaderValue(String, String) constructor

Applies to Windows and Windows Phone

Initializes a new instance of the HttpChallengeHeaderValue class with the scheme to use for authorization and the SPNEGO token.

Syntax


var httpChallengeHeaderValue = new Windows.Web.Http.Headers.HttpChallengeHeaderValue(scheme, token);

public HttpChallengeHeaderValue(
  string scheme, 
  string token
)

Public Sub New (
  scheme As String,  
  token As String 
)

public:
HttpChallengeHeaderValue(
  String^ scheme, 
  String^ token
)

Parameters

scheme

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The scheme to use for authorization.

token

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The SPNEGO token to use with the Negotiate protocol scheme.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http.Headers
Windows::Web::Http::Headers [C++]

Metadata

Windows.winmd

See also

HttpChallengeHeaderValue
HttpChallengeHeaderValue(String)