Interface IQueryLocalFeatures
Provides access to high level information pertaining to Features present on the locally Activation set of ILicenses for a given ProductContextFor(String, String).
NB The Feature sets returned from these queries do not include Features that may be obtainable via a Distributor. See the Agent.Distributor
extension's IContext
for mechanisms unifying access to locally-installed licenses and/or Distributed Features.
See Features for examples and details of how to obtain an IQueryLocalFeatures.
ProductContextFor(String, String) for examples and details of how to obtain an IProductContext.
For(String) for examples and details of how to obtain an IAgentContext.
Namespace: Sp.Agent.Licensing
Assembly: Sp.Agent.dll
Methods
Valid()
Provides a consolidated set of in-date Features across all currently Valid Software Potential service Product Licenses for this ProductContextFor(String, String) that have been Activated and installed into locally configured stores.
The set of licenses considered is obtainable via Valid().
NB The set does not include Features that may be obtainable via a Distributor. See the Agent.Distributor
extension's IContext
for mechanisms unifying access to locally-installed licenses and/or Distributed Features.
Declaration
ISet<string> Valid()
Returns
Type | Description |
---|---|
System.Collections.Generic.ISet<System.String> | The set of in-date Features available across all Valid licenses. |
Remarks
When checking for the presence of a single Feature, it can be significantly cheaper to use ValidContains(String) in preference.
The Execute
implicit feature is not included in this set; Use Valid() to query at the license level.
ValidContains(String)
Determines whether featureName
is an in-date Feature on any Valid Software Potential service Product License for this ProductContextFor(String, String) that have been Activated into one of the locally configured stores.
A consolidated set of available Features can be retrieved using Valid().
The set of licenses considered can be retrieved via Valid().
NB The set does not include Features that may be obtainable via a Distributor. See the Agent.Distributor
extension's IContext
for mechanisms unifying access to locally-installed licenses and/or Distributed Features.
Declaration
bool ValidContains(string featureName)
Parameters
Type | Name | Description |
---|---|---|
System.String | featureName | Name of the feature to search for. The value is case-sensitive. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Remarks
The Execute
implicit feature is not considered; Use Valid() to query at the license level.