Feature
Namespace: Babel.Licensing Assembly: Babel.Licensing.dll
Represents a license feature. A feature is used typically to enable additional.
Inheritance
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Feature()
Specialized default constructor for use only by derived class.
Feature(string)
Initializes a new instance of the class with a given feature name.
Parameters
The feature name.
Examples
Exceptions
Thrown when the parameter name is null.
Feature(string, byte[])
Initializes a new instance of the class with a given feature name and data.
Parameters
The feature name.
An array of bytes that contains the data related to this feature.
Examples
Exceptions
Thrown when one or more required arguments are null.
Feature(Feature)
Copy constructor.
Parameters
The Feature object to copy.
Exceptions
Thrown when the parameter other to copy is null.
Properties
Data
Gets or sets the data associated with this feature.
Property Value
byte[]
Description
Gets or sets the feature description.
Property Value
ExpireDate
Gets or sets the feature expire date.
Property Value
Id
Gets or sets the feature identifier.
Property Value
Key
Gets or sets the feature key. This is an additional field used to store encrypt key information.
Property Value
byte[]
Listeners
Gets the listeners.
Property Value
Name
Gets or sets the feature name.
Property Value
Methods
Attach(IObjectListener)
Attaches the given listener.
Parameters
The listener.
Exceptions
Thrown when one or more required arguments are null.
Detach(IObjectListener)
Detaches the given listener.
Parameters
The listener.
Exceptions
Thrown when one or more required arguments are null.
Notify(params object[])
Notifies registered listeners.
Parameters
A variable-length parameters list containing arguments.
Last updated