Show / Hide Table of Contents

Struct LicenseKey

Represents a license key that can be used to get License from LicensePublisher.

Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: DevZest.Licensing
Assembly: DevZest.Licensing.dll
Syntax
public struct LicenseKey
Remarks

A license key is a 25 digits string that can be used to get a License from LicensePublisher. The first 24 digits are generated randomly and the last digit is checksum. Use NewLicenseKey() to generate a new license key; Use ToString() method to convert LicenseKey into a string formatted as "xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"; Use CanConvertFrom(String)to determine if the provided string has correct format and checksum.

LicenseKey is also used to encrypt the reponse sent from LicensePublisher to LicenseClient.

Since LicenseKey can be used to get License from LicensePublisher, it should be stored as encrypted and never be displayed as clear text by your application.

Constructors

Name Description
LicenseKey(String)

Initializes a new instance of LicenseKey structure.

Properties

Name Description
Empty

Gets an empty LicenseKey.

IsEmpty

Determines whether this license key is empty.

Methods

Name Description
CanConvertFrom(String)

Determines the specified string can be converted to a LicenseKey.

Equals(LicenseKey, LicenseKey)
Equals(Object)
GetHashCode()
NewLicenseKey()

Initializes a new instance of LicenseKey.

ToString()

Operators

Name Description
Equality(LicenseKey, LicenseKey)
Inequality(LicenseKey, LicenseKey)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest