Class License
- Namespace
- ComponentSpace.Saml2.Licensing
- Assembly
- ComponentSpace.Saml2.dll
Provides license information.
public class License : ILicense
- Inheritance
-
License
- Implements
- Inherited Members
Constructors
License(LicenseManager)
Initializes a new instance of the License class.
public License(LicenseManager licenseManager)
Parameters
licenseManagerLicenseManagerThe license manager.
Properties
CustomerID
Gets the customer ID.
public string CustomerID { get; }
Property Value
- string
The customer ID.
Expiry
Gets the date/time the license expires.
public DateTime Expiry { get; }
Property Value
- DateTime
The date/time the license expires.
IssuedAt
Gets the date/time the license was issued.
public DateTime IssuedAt { get; }
Property Value
- DateTime
The date/time the license was issued.
LicenseNumber
Gets the license number.
public string LicenseNumber { get; }
Property Value
- string
The license number.
ProductID
Gets the product ID.
public string ProductID { get; }
Property Value
- string
The product ID.
ProductName
Gets the product name.
public string ProductName { get; }
Property Value
- string
The product name.
ProductVersion
Gets the product version.
public string ProductVersion { get; }
Property Value
- string
The product version.
Methods
HasExpired()
Indicates whether the license has expired.
public bool HasExpired()
Returns
- bool
trueif the license has expired; otherwisefalse.
IsLicenseProvided()
Indicates whether a license is provided.
public bool IsLicenseProvided()
Returns
- bool
trueif a license is provided; otherwisefalse.
IsLicensed()
Indicates whether the product is licensed.
public bool IsLicensed()
Returns
- bool
trueif licensed; otherwisefalse.