Class License
A license.
Inheritance
System.Object
License
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class License
Properties
AccountId
Gets the account identifier.
Declaration
public string AccountId { get; }
Property Value
Type | Description |
---|---|
System.String |
ContactEmailAddress
Gets the contact email address.
Declaration
public string ContactEmailAddress { get; }
Property Value
Type | Description |
---|---|
System.String |
ContactName
Gets the contact name.
Declaration
public string ContactName { get; }
Property Value
Type | Description |
---|---|
System.String |
ContactPhoneNumber
Gets the contact phone number.
Declaration
public string ContactPhoneNumber { get; }
Property Value
Type | Description |
---|---|
System.String |
CoreCount
Gets the core count.
Declaration
public int? CoreCount { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
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.String |
IsTrial
Gets a value indicating whether this is a trial license.
Declaration
public bool IsTrial { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsValid
Gets a value indicating whether this is a valid license.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ProductCode
Gets the product code.
Declaration
public string ProductCode { get; }
Property Value
Type | Description |
---|---|
System.String |
SiteAddress
Gets the site address.
Declaration
public string SiteAddress { get; }
Property Value
Type | Description |
---|---|
System.String |
SiteName
Gets the site name.
Declaration
public string SiteName { get; }
Property Value
Type | Description |
---|---|
System.String |
ValidFrom
Gets the "valid from" date.
Declaration
public DateTime ValidFrom { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
ValidTo
Gets the "valid to" date.
Declaration
public DateTime ValidTo { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
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.String | message |
Returns
Type | Description |
---|---|
System.Boolean |
CheckKey()
Gets a value indicating whether a valid key has been set.
Declaration
[Conditional("ICELINK")]
public static void CheckKey()
ParseKey(String)
Parses a license key.
Declaration
public static License ParseKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | 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.String | key | The license key. |