Interface IQueryLicenses
Provides access to information pertaining to the Activation set of ILicenses for a given ProductContextFor(String, String).
See Licenses for examples and details of how to obtain an IQueryLicenses.
See ProductContextFor(String, String) for examples and details of how to obtain an IProductContext.
See For(String) for examples and details of how to obtain an IAgentContext.
Namespace: Sp.Agent.Licensing
Assembly: Sp.Agent.dll
Methods
All()
Returns ALL activated Software Potential service Product Licenses for this ProductContextFor(String, String).
NB This INCLUDES POTENTIALLY INVALID licenses and hence should not be used in authorization checks. In general, the .Valid()
sibling is the more appropriate query method to use.
Declaration
IEnumerable<ILicense> All()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ILicense> |
See Also
DueForRenewalNow()
Returns all activated Software Potential service Product Licenses for this ProductContextFor(String, String) that are past their current ExpirationDate
Declaration
IEnumerable<ILicense> DueForRenewalNow()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ILicense> |
See Also
Valid()
Returns currently valid activated Software Potential service Product Licenses for this ProductContextFor(String, String).
Compared to .All
, this filters out licenses that are not presently in-date, are in violation of License Binding or Virtual Execution Environment restrictions or have been tampered.
This list is in sync with the set of licenses considered by the Execution Engine for the execution of Protected Code.
Declaration
IEnumerable<ILicense> Valid()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ILicense> |