• Webservices API
  • Agent Runtime API
  • Support
  • Samples
  • Software Potential Home
Show / Hide Table of Contents
  • Sp.Agent
    • ActivateLicensesExtensions
    • IProductContext
    • ProductActivationConfigurationCompleteWithDefaultsExtensions
    • ProductActivationConfigurationDefaultExtensions
  • Sp.Agent.Activation
    • ActivationServerException
    • ActivationTransmissionException
    • DeviceChangedActivationServerException
    • DistributorLicenseActivationServerException
    • IActivateLicenses
    • IActivateLicensesAdvanced
    • InvalidLicenseKeyException
    • InvalidVersionActivationServerException
    • LicenseDisabledActivationServerException
    • LicenseExpiredActivationServerException
    • LinkedLicenseAmbiguousStorageActivationServerException
    • LinkedLicenseNoStorageActivationServerException
    • NumberOfActivationsExceededActivationServerException
    • ProductIdMismatchActivationServerException
    • RenewalNotAuthorizedActivationServerException
    • TagsChangedActivationServerException
  • Sp.Agent.Configuration
    • AgentContext
    • AgentContextDistributorsExtensions
    • AgentDistributorsConfigurationExtensions
    • CloudStorageConfigurationExtensions
    • ConfigurationCompleteWithDefaultsExtensions
    • CrmActivationEndpointsConfigurationPhaseExtensions
    • CrmAgentContextExtensions
    • CrmStartingConfigurationPhaseExtensions
    • DistributorDisableStorageExtensions
    • FileStoreInitialization
    • HardwareStoreConfigurationExtensions
    • HardwareStoreInitialization
    • IAgentChallengeConfigurationPhase
    • IAgentCloudStorageCommenceConfigurationPhase
    • IAgentCloudStorageCompleteConfigurationPhase
    • IAgentCloudStorageConfigurationPhase
    • IAgentCloudStorageConfigurationPhaseTail
    • IAgentCloudStorageCustomIdConfigurationPhase
    • IAgentCommenceConfigurationPhase
    • IAgentCompletedConfigurationPhase
    • IAgentContext
    • IAgentDistributorsConfigurationPhase
    • IAgentEmbeddedLicensesConfigurationPhase
    • IAgentExternalStorageConfigurationPhase
    • IAgentHardwareBoundStorageConfigurationPhase
    • IAgentUserBoundStorageConfigurationPhase
    • ICrmActivationEndpointsConfigurationPhase
    • IDistributorCommenceConfigurationPhase
    • IDistributorCompletedConfigurationPhase
    • IDistributorConfigurationPhaseTail
    • IDistributorNamedUserConfigurationPhase
    • IInitializeStores
    • IStoreLicensesInitializationExtensions
    • LocalStoreConfigurationExtensions
    • LocalStoreInitialization
    • ProductContextDistributedExtensions
    • RemovableConfigurationExtensions
    • WebApplicationStoreConfigurationExtensions
  • Sp.Agent.Configuration.Product
    • IProductCommenceConfigurationPhase
    • IProductCompletedConfigurationPhase
    • IProductConfigurationPhaseTail
  • Sp.Agent.Configuration.Product.Activation
    • IActivationAttemptContext
    • IActivationDeviceLabelContext
    • IActivationTaggingContext
    • IProductActivationCommenceConfigurationPhase
    • IProductActivationCompletedConfigurationPhase
    • IProductActivationConfigurationPhase
    • IProductActivationConfigurationPhaseTail
    • IProductActivationDeviceLabelConfigurationPhase
    • IProductActivationDeviceLabelTailConfigurationPhase
    • IProductActivationTransmissionCommenceConfigurationPhase
    • IProductActivationTransmissionCompletedConfigurationPhase
    • IProductActivationTransmissionConfigurationPhase
    • IProductActivationTransmissionConfigurationPhaseTail
    • IProductActivationTransmissionEndpointConfigurationPhase
    • IProductActivationTransmissionHooksConfigurationPhase
    • IProductActivationTransmissionProxyConfigurationPhase
    • ProductActivationConfigurationException
  • Sp.Agent.Distributor
    • CheckedOutNotLicensedException
    • CheckoutRequiresStorageException
    • CheckoutStorageAccessException
    • DistributorIntegrityException
    • DistributorIntegrityNotLicensedException
    • DistributorNotLicensedException
    • DistributorRequestException
    • IAvailableCheckout
    • ICheckout
    • ICheckoutContext
    • IDistributedContext
    • IDistributorsContext
    • NoDistributorException
    • NoLongerAvailableException
    • NotLicnesedInvalidNamedUserException
  • Sp.Agent.Execution
    • NotLicensedException
  • Sp.Agent.Licensing
    • IFeature
    • ILicense
    • ILicenseAdvanced
    • ILicensePeriod
    • ILicenseRenewal
    • IQueryFeatures
    • IQueryLicenses
    • IQueryLocalFeatures
    • IQueryUserTokens
    • IUserToken
    • LicenseRevisionException
  • Sp.Agent.Storage
    • DistributorLicenseOnClientException
    • InvalidStorageAccessException
    • InvalidStorageException
    • IStore
    • IStoreLicenses
    • IStoreUserTokens
    • LicenseNotFoundException
    • LicenseTargetEnvironmentMismatchException
    • NonmatchingProductIdException
    • ReadingStorageInaccessibleException
    • ServerOSNotAllowedException
    • StorageInaccessibleException
    • StoreNotEmptyException
    • UserTokenNotFoundException
    • VirtualMachineNotAllowedException
    • WritingStorageInaccessibleException

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
ILicense

IsEvaluation

Indicates whether License is an Evaluation license (or Commercial).

Declaration
bool IsEvaluation { get; }
Property Value
Type Description
System.Boolean

true if the License is an Evaluation License.

false if the License is a Commercial License.

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 Keys 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. DateTime.MaxValue if no ExpirationDate stipulated in the license terms.

Remarks

The System.DateTimeKind is System.DateTimeKind.Local.

See Also

IQueryLicenses
Licenses
ProductContextFor(String, String)
For(String)
Back to top Generated by DocFX