Class LicenseFileInfo
Provides an information about the license file.
Inheritance
System.Object
LicenseFileInfo
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Licensing
Assembly: Sartorius.SAF.Licensing.dll
Syntax
[Serializable]
[KnownType(typeof(FeatureInfo[]))]
public class LicenseFileInfo
Constructors
View SourceLicenseFileInfo()
Initializes a new instance of the LicenseFileInfo class.
Declaration
public LicenseFileInfo()
LicenseFileInfo(IEnumerable<FeatureInfo>)
Create and initialize a new instance of LicenseFileInfo
Declaration
public LicenseFileInfo(IEnumerable<FeatureInfo> featureInfos)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<FeatureInfo> | featureInfos |
Properties
View SourceFeatureInfos
Gets a list of all license features defined in a license file.
Declaration
public FeatureInfoCollection FeatureInfos { get; set; }
Property Value
Type | Description |
---|---|
FeatureInfoCollection |
FileName
Gets the license file name.
Declaration
public string FileName { get; }
Property Value
Type | Description |
---|---|
System.String |
Item[Int32]
Gets a feature info for given
index
Declaration
public FeatureInfo this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
FeatureInfo | An instance of FeatureInfo |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | If feature info for index not found. |
Item[String]
Gets a feature info for given
featureId
Declaration
public FeatureInfo this[string featureId] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | featureId |
Property Value
Type | Description |
---|---|
FeatureInfo | An instance of FeatureInfo |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | If feature info for featureId not found. |
Properties
Gets a list of additional license information.
Declaration
public IReadOnlyDictionary<string, object> Properties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object> | A list of additional license information or null if not any defined. |
Methods
View SourceAddProperty(String, Object)
Add a given property. If the given property already exist, the new value override the old value.
Declaration
public void AddProperty(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | A property key. |
System.Object | value | A property value |