Class LicenseKeysException
Indicates that the license activation keys are an invalid activation Key.
Implements
Namespace: Sartorius.SAF.Licensing
Assembly: Sartorius.SAF.Licensing.dll
Syntax
[Serializable]
public class LicenseKeysException : LicenseException, ISerializable
Constructors
View SourceLicenseKeysException()
Create a new instance of LicenseKeysException class.
Declaration
public LicenseKeysException()
LicenseKeysException(SerializationInfo, StreamingContext)
Initializes a new instance of the FeatureNotFoundException class with serialized data.
Declaration
protected LicenseKeysException(SerializationInfo si, StreamingContext ctx)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | si | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | ctx | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
LicenseKeysException(String)
Initializes a new instance of the LicenseKeysException class with a specified error message.
Declaration
public LicenseKeysException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
LicenseKeysException(String, IList<InvalidKeyInfo>, IList<String>, Exception)
Initializes a new instance of the FeatureNotFoundException class with a specified error message.
Declaration
public LicenseKeysException(string message, IList<InvalidKeyInfo> invalidKeys, IList<string> appliedKeys, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception, or an empty string |
System.Collections.Generic.IList<InvalidKeyInfo> | invalidKeys | |
System.Collections.Generic.IList<System.String> | appliedKeys | |
System.Exception | innerException | The inner exception. |
LicenseKeysException(String, Exception)
Initializes a new instance of the LicenseKeysException class with a specified error message.
Declaration
public LicenseKeysException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
System.Exception | innerException | The inner exception. |
Properties
View SourceInvalidKeys
Gets a list of keys that can't be applied for license system.
Declaration
public IReadOnlyList<InvalidKeyInfo> InvalidKeys { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<InvalidKeyInfo> |
UsedKeys
Gets a list of applied but not activated keys. This keys can't be used again.
Declaration
public IReadOnlyList<string> UsedKeys { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.String> |
Methods
View SourceGetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |