Interface ILicense
Provides access to information pertaining to an Activation License for a given ProductContextFor(String, String).
Namespace: Sp.Agent.Licensing
Assembly: Sp.Agent.dll
Properties
ActivationKey
The activation key for Activation License.
Declaration
string ActivationKey { get; }
Property Value
Type | Description |
---|---|
System.String |
Advanced
Provides access to aspects of the license which are not commonly used directly in the vast majority of Software Potential licensed applications.
Declaration
ILicenseAdvanced Advanced { get; }
Property Value
Type | Description |
---|---|
ILicenseAdvanced |
Remarks
In most cases, other facilities within IProductContext provide higher level facilities that provide the desired behavior in a higher level fashion than the lower-level Apis contained hereunder.
See Also
IsEvaluation
Indicates whether License is an Evaluation license (or Commercial).
Declaration
bool IsEvaluation { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
All Evaluation licenses available for a product are removed whenever a Commercial License for the same product is added to the IStoreLicenses.
IssueDate
Declaration
[Obsolete("Removed for simplicity:- No known use cases")]
DateTime IssueDate { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Renewal
Declaration
[Obsolete("Removed for simplicity:- RevisionNumber should not be required and GracePeriod is enforced but should not be necessary to use directly")]
ILicenseRenewal Renewal { get; }
Property Value
Type | Description |
---|---|
ILicenseRenewal |
Tags
The custom tags associated with this License.
Declaration
IDictionary<string, string> Tags { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> |
Remarks
Tags can be added either via the Software Potential service Web Api or by supplying them at Activation Time via a Product Configuration Customization supplied during the IProductActivationCommenceConfigurationPhase.
The Key
s of Activation Tags are prefixed with an A:
prefix.
ValidFrom
Declaration
[Obsolete("Removed for simplicity:- The restriction is enforced (*Valid* APIs take it into account) but there are no known use cases where it is necessary to obtain this programmatically")]
DateTime ValidFrom { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
ValidUntil
The date/time until which the License is operable, which may be limited by a ExpirationDate and extended by the Grace Period applied at the point of issue.
Declaration
DateTime ValidUntil { get; }
Property Value
Type | Description |
---|---|
System.DateTime | The date at which the license will no longer be usable. |
Remarks
The System.DateTimeKind is System.DateTimeKind.Local.