Class LicenseValidationResult
Result of validating the current license for the active request host.
Inheritance
LicenseValidationResult
Assembly: CoreUpload.dll
Syntax
public class LicenseValidationResult
Properties
Edition
Gets or sets the resolved edition when the license is valid.
Declaration
public LicenseEdition Edition { get; init; }
Property Value
ErrorMessage
Gets or sets the validation error message when the license is invalid.
Declaration
public string? ErrorMessage { get; init; }
Property Value
IsValid
Gets or sets a value indicating whether the license is valid for the current request.
Declaration
public bool IsValid { get; init; }
Property Value
Methods
Invalid(string)
Creates a failed validation result with the supplied error message.
Declaration
public static LicenseValidationResult Invalid(string message)
Parameters
| Type |
Name |
Description |
| string |
message |
|
Returns
Valid(LicenseEdition)
Creates a successful validation result for the supplied edition.
Declaration
public static LicenseValidationResult Valid(LicenseEdition edition)
Parameters
Returns