Class GrantCollection
A collection of grant objects.
Inherited Members
System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
Namespace: ABB.Robotics.Controllers.UserAuthorizationManagement
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class GrantCollection : UasCollectionBase<GrantInfo>, IList, ICollection, IEnumerable<GrantInfo>, IEnumerable
Constructors
GrantCollection()
Initializes a new instance of the GrantCollection class.
Declaration
public GrantCollection()
Properties
Item[Int32]
Gets or sets the GrantInfo at the specified index.
Declaration
public GrantInfo this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
GrantInfo | The value. |
Methods
Add(GrantInfo)
Adds a grant to the collection.
Declaration
public int Add(GrantInfo value)
Parameters
Type | Name | Description |
---|---|---|
GrantInfo | value |
Returns
Type | Description |
---|---|
Int32 |
Clear()
Clears the collection.
Declaration
public void Clear()
Contains(GrantInfo)
Checks (by name) if the the collection contains a specific grant.
Declaration
public bool Contains(GrantInfo value)
Parameters
Type | Name | Description |
---|---|---|
GrantInfo | value |
Returns
Type | Description |
---|---|
Boolean |
IndexOf(GrantInfo)
Retrieves the index of a specific grant. Returns -1 if the grant can't be found.
Declaration
public int IndexOf(GrantInfo value)
Parameters
Type | Name | Description |
---|---|---|
GrantInfo | value |
Returns
Type | Description |
---|---|
Int32 |
Insert(Int32, GrantInfo)
Inserts a grant into the collection.
Declaration
public void Insert(int index, GrantInfo value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | |
GrantInfo | value |
Remove(GrantInfo)
Removes a grant from the collection.
Declaration
public void Remove(GrantInfo value)
Parameters
Type | Name | Description |
---|---|---|
GrantInfo | value |
RemoveAt(Int32)
Removes a grant at a specific index.
Declaration
public void RemoveAt(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value |