Class RestrictionList
Defines a list of restrictions
Inheritance
System.Object
RestrictionList
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Core.License.Meriworks
Assembly: ImageVault.Core.dll
Syntax
public class RestrictionList
Constructors
RestrictionList()
Declaration
public RestrictionList()
Properties
Count
Gets the number of restrictions in the list
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
InnerList
Restrictions
Declaration
public List<Restriction> InnerList { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Restriction> |
Item[Int32]
Indexes the items in the collection
Declaration
public Restriction this[int i] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i |
Property Value
Type | Description |
---|---|
Restriction |
Methods
Add(Restriction)
Adds an Itentity to the collection
Declaration
public void Add(Restriction restriction)
Parameters
Type | Name | Description |
---|---|---|
Restriction | restriction |
Clear()
Clears the items in the list.
Declaration
public void Clear()
Insert(Int32, Restriction)
Inserts a Restriction in the list at the given index.
Declaration
public void Insert(int index, Restriction restriction)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
Restriction | restriction |
LoadXml(String)
Loads a xml string and creates a RestrictionList
Declaration
public static RestrictionList LoadXml(string xml)
Parameters
Type | Name | Description |
---|---|---|
System.String | xml |
Returns
Type | Description |
---|---|
RestrictionList |
Remove(Restriction)
Removes the segment from the collection
Declaration
public void Remove(Restriction restriction)
Parameters
Type | Name | Description |
---|---|---|
Restriction | restriction |
SaveXml()
Saves the RestrictionList to a xml string.
Declaration
public string SaveXml()
Returns
Type | Description |
---|---|
System.String | The generated xml System.String |