Class License
A license.
Inheritance
System.Object
License
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class License : object
Properties
AccountId
Gets the account identifier.
Declaration
public string AccountId { get; }
Property Value
Type | Description |
---|---|
System. |
ContactEmailAddress
Gets the contact email address.
Declaration
public string ContactEmailAddress { get; }
Property Value
Type | Description |
---|---|
System. |
ContactName
Gets the contact name.
Declaration
public string ContactName { get; }
Property Value
Type | Description |
---|---|
System. |
ContactPhoneNumber
Gets the contact phone number.
Declaration
public string ContactPhoneNumber { get; }
Property Value
Type | Description |
---|---|
System. |
CoreCount
Gets the core count.
Declaration
public int? CoreCount { get; }
Property Value
Type | Description |
---|---|
System. |
Current
Gets the current license.
Declaration
public static License Current { get; }
Property Value
Type | Description |
---|---|
License |
Id
Gets the license identifier.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System. |
IsTrial
Gets a value indicating whether this is a trial license.
Declaration
public bool IsTrial { get; }
Property Value
Type | Description |
---|---|
System. |
IsValid
Gets a value indicating whether this is a valid license.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
System. |
ProductCode
Gets the product code.
Declaration
public string ProductCode { get; }
Property Value
Type | Description |
---|---|
System. |
SiteAddress
Gets the site address.
Declaration
public string SiteAddress { get; }
Property Value
Type | Description |
---|---|
System. |
SiteName
Gets the site name.
Declaration
public string SiteName { get; }
Property Value
Type | Description |
---|---|
System. |
ValidFrom
Gets the "valid from" date.
Declaration
public DateTime ValidFrom { get; }
Property Value
Type | Description |
---|---|
Date |
ValidTo
Gets the "valid to" date.
Declaration
public DateTime ValidTo { get; }
Property Value
Type | Description |
---|---|
Date |
Methods
Check(out String)
Checks if the license is valid for this product.
Declaration
public bool Check(out string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message |
Returns
Type | Description |
---|---|
System. |
CheckKey()
Gets a value indicating whether a valid key has been set.
Declaration
public static void CheckKey()
ParseKey(String)
Parses a license key.
Declaration
public static License ParseKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
Returns
Type | Description |
---|---|
License |
SetKey(String)
Sets the license key.
Declaration
public static void SetKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The license key. |