Show / Hide Table of Contents

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 Source

LicenseFileInfo()

Initializes a new instance of the LicenseFileInfo class.

Declaration
public LicenseFileInfo()
View Source

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 Source

FeatureInfos

Gets a list of all license features defined in a license file.

Declaration
public FeatureInfoCollection FeatureInfos { get; set; }
Property Value
Type Description
FeatureInfoCollection
View Source

FileName

Gets the license file name.

Declaration
public string FileName { get; }
Property Value
Type Description
System.String
View Source

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

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

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 Source

AddProperty(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

Extension Methods

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