Show / Hide Table of Contents

Class License

Provides license information.

Inheritance
object
License
Implements
ILicense
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ComponentSpace.Saml2.Licensing
Assembly: ComponentSpace.Saml2.dll
Syntax
public class License : ILicense

Constructors

License(LicenseManager)

Initializes a new instance of the License class.

Declaration
public License(LicenseManager licenseManager)
Parameters
Type Name Description
LicenseManager licenseManager

The license manager.

Properties

CustomerID

Gets the customer ID.

Declaration
public string CustomerID { get; }
Property Value
Type Description
string

The customer ID.

Expiry

Gets the date/time the license expires.

Declaration
public DateTime Expiry { get; }
Property Value
Type Description
DateTime

The date/time the license expires.

IssuedAt

Gets the date/time the license was issued.

Declaration
public DateTime IssuedAt { get; }
Property Value
Type Description
DateTime

The date/time the license was issued.

LicenseNumber

Gets the license number.

Declaration
public string LicenseNumber { get; }
Property Value
Type Description
string

The license number.

ProductID

Gets the product ID.

Declaration
public string ProductID { get; }
Property Value
Type Description
string

The product ID.

ProductName

Gets the product name.

Declaration
public string ProductName { get; }
Property Value
Type Description
string

The product name.

ProductVersion

Gets the product version.

Declaration
public string ProductVersion { get; }
Property Value
Type Description
string

The product version.

Methods

HasExpired()

Indicates whether the license has expired.

Declaration
public bool HasExpired()
Returns
Type Description
bool

true if the license has expired; otherwise false.

IsLicenseProvided()

Indicates whether a license is provided.

Declaration
public bool IsLicenseProvided()
Returns
Type Description
bool

true if a license is provided; otherwise false.

IsLicensed()

Indicates whether the product is licensed.

Declaration
public bool IsLicensed()
Returns
Type Description
bool

true if licensed; otherwise false.

Implements

ILicense
In this article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2026. All rights reserved.