ClassTestRegionCollection
Class
A keyed TestRegion collection.
Definition
Namespace:ArtOfTest.WebAii.ObjectModel
Assembly:ArtOfTest.WebAii.dll
Syntax:
cs-api-definition
public class TestRegionCollection : KeyedCollection<string, TestRegion>, IList<TestRegion>, ICollection<TestRegion>, IList, ICollection, IReadOnlyList<TestRegion>, IReadOnlyCollection<TestRegion>, IEnumerable<TestRegion>, IEnumerable
Inheritance: objectCollection<TestRegion>KeyedCollection<string, TestRegion>TestRegionCollection
Implements:
Inherited Members
Properties
ReturnNullIfNotFound
Gets/Sets whether to throw or return null if a region is not found.
Declaration
cs-api-definition
public bool ReturnNullIfNotFound { get; set; }
Property Value
Remarks
Default value is false
this[string]
Get a testregion by id. Case-insensitive.
Declaration
cs-api-definition
public TestRegion this[string id] { get; }
Parameters
id
The testregion id.
Property Value
The testregion.
Methods
Contains(string)
Check if a TestRegion is in this collection.
GetKeyForItem(TestRegion)
Get the key for an item.
Declaration
cs-api-definition
protected override string GetKeyForItem(TestRegion item)
Parameters
item
The item to get the key for.
Returns
The key.
Overrides
Remove(string)
Remove an item from the collection.
Declaration
cs-api-definition
public void Remove(string key)
Parameters
key
The key of the TestRegion to remove.