AuthorizationHeaderResult Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AuthorizationHeaderResult(AuthorizationHeaderError) |
Initializes a new instance of the AuthorizationHeaderResult class with error information. |
| AuthorizationHeaderResult(AuthorizationHeaderInformation) |
Initializes a new instance of the AuthorizationHeaderResult class with successful authorization header information. |
| AuthorizationHeaderResult(AuthorizationHeaderInformation, AuthorizationHeaderError) |
Initializes a new instance of the AuthorizationHeaderResult class with either authorization header information or error details. |
AuthorizationHeaderResult(AuthorizationHeaderError)
Initializes a new instance of the AuthorizationHeaderResult class with error information.
public AuthorizationHeaderResult(Microsoft.Identity.Abstractions.AuthorizationHeaderError error);
new Microsoft.Identity.Abstractions.AuthorizationHeaderResult : Microsoft.Identity.Abstractions.AuthorizationHeaderError -> Microsoft.Identity.Abstractions.AuthorizationHeaderResult
Public Sub New (error As AuthorizationHeaderError)
Parameters
- error
- AuthorizationHeaderError
The error information describing why the operation failed.
Applies to
AuthorizationHeaderResult(AuthorizationHeaderInformation)
Initializes a new instance of the AuthorizationHeaderResult class with successful authorization header information.
public AuthorizationHeaderResult(Microsoft.Identity.Abstractions.AuthorizationHeaderInformation info);
new Microsoft.Identity.Abstractions.AuthorizationHeaderResult : Microsoft.Identity.Abstractions.AuthorizationHeaderInformation -> Microsoft.Identity.Abstractions.AuthorizationHeaderResult
Public Sub New (info As AuthorizationHeaderInformation)
Parameters
The authorization header information containing the result of a successful operation.
Applies to
AuthorizationHeaderResult(AuthorizationHeaderInformation, AuthorizationHeaderError)
Initializes a new instance of the AuthorizationHeaderResult class with either authorization header information or error details.
public AuthorizationHeaderResult(Microsoft.Identity.Abstractions.AuthorizationHeaderInformation? info, Microsoft.Identity.Abstractions.AuthorizationHeaderError? error);
new Microsoft.Identity.Abstractions.AuthorizationHeaderResult : Microsoft.Identity.Abstractions.AuthorizationHeaderInformation * Microsoft.Identity.Abstractions.AuthorizationHeaderError -> Microsoft.Identity.Abstractions.AuthorizationHeaderResult
Public Sub New (info As AuthorizationHeaderInformation, error As AuthorizationHeaderError)
Parameters
The authorization header information if the operation succeeded, or null if it failed.
- error
- AuthorizationHeaderError
The error information if the operation failed, or null if it succeeded.
Remarks
Exactly one of info or error should be non-null. This constructor is provided for compatibility with the original design proposal.