Table of Contents

Create Method

Definition

Create(string)

Creates an instance of BasicAuthorizationHeader from the specified parameters.

public static BasicAuthorizationHeader Create(string authorizationHeader)

Parameters

authorizationHeader string

The raw HTTP authorization header.

Returns

BasicAuthorizationHeader

An instance of BasicAuthorizationHeader.

Exceptions

ArgumentNullException

authorizationHeader cannot be null.

ArgumentException

authorizationHeader cannot be empty or consist only of white-space characters.