Search Results for

Show / Hide Table of Contents

# Class LicenseValidationResult

Describes the outcome of validating the current AjaxUploader license.

##### Inheritance

object
LicenseValidationResult

##### Inherited Members

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

###### Namespace: AjaxUploader.Licensing

###### Assembly: AjaxUploader.dll

##### Syntax

    public class LicenseValidationResult

### Properties

#### Edition

Gets the resolved license edition.

##### Declaration

    public LicenseEdition Edition { get; }

##### Property Value

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

#### ErrorMessage

Gets the validation error message when the license is not valid.

##### Declaration

    public string ErrorMessage { get; }

##### Property Value

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

#### IsValid

Gets a value indicating whether validation succeeded.

##### Declaration

    public bool IsValid { get; }

##### 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 specified edition.

##### Declaration

    public static LicenseValidationResult Valid(LicenseEdition edition)

##### Parameters

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

##### Returns

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