Interface IQueryFeatures
Provides access to high level information pertaining to features present on the Activation set of ILicenses for a given ProductContextFor(String, String).
See Features for examples and details of how to obtain an IQueryFeatures.
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
ValidAvailable()
Provides a consolidated set of in-date Features across all currently Valid Activated Software Potential service Product Licenses for this ProductContextFor(String, String).
The set of licenses considered is obtainable via Valid().
Declaration
[Obsolete("This method has been renamed. Please change your code to use the new name: LocalFeatures.Valid")]
ISet<string> ValidAvailable()
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 ValidAvailableContains(String) in preference.
Use Valid() to query at the license level.
ValidAvailableContains(String)
Determines whether featureName
is available and in-date Feature on any Valid Activated Software Potential service Product License for this ProductContextFor(String, String).
A consolidated set of available features can be retrieved using ValidAvailable().
The set of licenses considered can be retrieved via Valid().
Declaration
[Obsolete("This method has been renamed. Please change your code to use the new name: LocalFeatures.ValidContains")]
bool ValidAvailableContains(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
Use Valid() to query at the license level.