Class License
Provides license information.
Implements
Inherited Members
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 |
|
IsLicenseProvided()
Indicates whether a license is provided.
Declaration
public bool IsLicenseProvided()
Returns
| Type | Description |
|---|---|
| bool |
|
IsLicensed()
Indicates whether the product is licensed.
Declaration
public bool IsLicensed()
Returns
| Type | Description |
|---|---|
| bool |
|