Table of Contents

BasicAuthorizationHeader Constructor

Definition

BasicAuthorizationHeader(string, string)

Initializes a new instance of the BasicAuthorizationHeader class.

public BasicAuthorizationHeader(string username, string password)

Parameters

username string

The username of the credentials.

password string

The password of the credentials.

Exceptions

ArgumentNullException

username cannot be null -or- password cannot be null.

ArgumentException

username cannot be empty or consist only of white-space characters -or- password cannot be empty or consist only of white-space characters -or- username does not allow the presence of the colon character.