Class
TestRegionCollection

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: ICollectionICollection<TestRegion>IEnumerableIEnumerable<TestRegion>IListIList<TestRegion>IReadOnlyCollection<TestRegion>IReadOnlyList<TestRegion>

Inherited Members KeyedCollection<string, TestRegion>.Contains(string)KeyedCollection<string, TestRegion>.Remove(string)KeyedCollection<string, TestRegion>.ChangeItemKey(TestRegion, string)KeyedCollection<string, TestRegion>.ClearItems()KeyedCollection<string, TestRegion>.GetKeyForItem(TestRegion)KeyedCollection<string, TestRegion>.InsertItem(int, TestRegion)KeyedCollection<string, TestRegion>.RemoveItem(int)KeyedCollection<string, TestRegion>.SetItem(int, TestRegion)KeyedCollection<string, TestRegion>.ComparerKeyedCollection<string, TestRegion>.this[string]KeyedCollection<string, TestRegion>.DictionaryCollection<TestRegion>.Add(TestRegion)Collection<TestRegion>.Clear()Collection<TestRegion>.CopyTo(TestRegion[], int)Collection<TestRegion>.Contains(TestRegion)Collection<TestRegion>.GetEnumerator()Collection<TestRegion>.IndexOf(TestRegion)Collection<TestRegion>.Insert(int, TestRegion)Collection<TestRegion>.Remove(TestRegion)Collection<TestRegion>.RemoveAt(int)Collection<TestRegion>.ClearItems()Collection<TestRegion>.InsertItem(int, TestRegion)Collection<TestRegion>.RemoveItem(int)Collection<TestRegion>.SetItem(int, TestRegion)Collection<TestRegion>.CountCollection<TestRegion>.ItemsCollection<TestRegion>.this[int]

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

bool

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

string

The testregion id.

Property Value

TestRegion

The testregion.

Methods

Contains(string)

Check if a TestRegion is in this collection.

Declaration

cs-api-definition
public bool Contains(string key)

Parameters

key

string

The key to check

Returns

bool

True/False whether the items is in the collection.

GetKeyForItem(TestRegion)

Get the key for an item.

Declaration

cs-api-definition
protected override string GetKeyForItem(TestRegion item)

Parameters

item

TestRegion

The item to get the key for.

Returns

string

The key.

Overrides KeyedCollection<string, TestRegion>.GetKeyForItem(TestRegion)

Remove(string)

Remove an item from the collection.

Declaration

cs-api-definition
public void Remove(string key)

Parameters

key

string

The key of the TestRegion to remove.