Search Results for

Show / Hide Table of Contents

# Class LicenseValidationResult

Result of validating the current license for the active request host.

##### Inheritance

object
LicenseValidationResult

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: CoreUpload.Licensing

###### 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

Type | Description
--- | ---
LicenseEdition |

#### ErrorMessage

Gets or sets the validation error message when the license is invalid.

##### Declaration

    public string? ErrorMessage { get; init; }

##### Property Value

Type | Description
--- | ---
string |

#### IsValid

Gets or sets a value indicating whether the license is valid for the current request.

##### Declaration

    public bool IsValid { get; init; }

##### Property Value

Type | Description
--- | ---
bool |

### 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

Type | Description
--- | ---
LicenseValidationResult |

#### Valid(LicenseEdition)

Creates a successful validation result for the supplied edition.

##### Declaration

    public static LicenseValidationResult Valid(LicenseEdition edition)

##### Parameters

Type | Name | Description
--- | --- | ---
LicenseEdition | edition |

##### Returns

Type | Description
--- | ---
LicenseValidationResult |