Show / Hide Table of Contents

Class LicenseKeysException

Indicates that the license activation keys are an invalid activation Key.

Inheritance
System.Object
System.Exception
LicenseException
LicenseKeysException
Implements
System.Runtime.Serialization.ISerializable
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Sartorius.SAF.Licensing
Assembly: Sartorius.SAF.Licensing.dll
Syntax
[Serializable]
public class LicenseKeysException : LicenseException, ISerializable

Constructors

View Source

LicenseKeysException()

Create a new instance of LicenseKeysException class.

Declaration
public LicenseKeysException()
View Source

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.

View Source

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.

View Source

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.

View Source

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 Source

InvalidKeys

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>
View Source

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 Source

GetObjectData(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.

Overrides
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Implements

System.Runtime.Serialization.ISerializable

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
ExceptionExtensions.GetRootException(Exception)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX