Class OptionCollection
- Namespace
- ArcanaDevelopment.adTempus.Client.Collections
- Assembly
- ArcanaDevelopment.adTempus.Client.dll
public sealed class OptionCollection : ObjectBaseCollectionT<Option>
- Inheritance
-
object
OptionCollection
Methods
Add(Option)
Adds an item to the System.Collections.Generic.ICollection<T>.
public override void Add(Option newOption)
Parameters
| Name | Type | Description |
newOption |
Option |
|
Exceptions
- NotSupportedException
The System.Collections.Generic.ICollection<T> is read-only.
ContainsKey(string)
public bool ContainsKey(string optionName)
Parameters
| Name | Type | Description |
optionName |
string |
|
Returns
- bool
Get(string, bool)
public Option Get(string optionName, bool createIfNonExistant = true)
Parameters
| Name | Type | Description |
optionName |
string |
|
createIfNonExistant |
bool |
|
Returns
- Option
GetOptionValue(string)
public string GetOptionValue(string optionName)
Parameters
| Name | Type | Description |
optionName |
string |
|
Returns
- string
GetOptionValue(string, bool)
public bool GetOptionValue(string optionName, bool defaultValue)
Parameters
| Name | Type | Description |
optionName |
string |
|
defaultValue |
bool |
|
Returns
- bool
GetOptionValue(string, int)
public int GetOptionValue(string optionName, int defaultValue)
Parameters
| Name | Type | Description |
optionName |
string |
|
defaultValue |
int |
|
Returns
- int
GetOptionValue(string, string)
public string GetOptionValue(string optionName, string defaultValue)
Parameters
| Name | Type | Description |
optionName |
string |
|
defaultValue |
string |
|
Returns
- string
GetOptionValueAsBool(string)
public bool? GetOptionValueAsBool(string optionName)
Parameters
| Name | Type | Description |
optionName |
string |
|
Returns
- bool?
GetOptionValueAsDateTime(string)
public DateTime? GetOptionValueAsDateTime(string optionName)
Parameters
| Name | Type | Description |
optionName |
string |
|
Returns
- DateTime?
GetOptionValueAsInt(string)
public int? GetOptionValueAsInt(string optionName)
Parameters
| Name | Type | Description |
optionName |
string |
|
Returns
- int?
Remove(string)
public bool Remove(string optionName)
Parameters
| Name | Type | Description |
optionName |
string |
|
Returns
- bool
RemoveAt(int)
public override void RemoveAt(int index)
Parameters
| Name | Type | Description |
index |
int |
|
SetOptionValue(string, bool?)
public Option SetOptionValue(string optionName, bool? value)
Parameters
| Name | Type | Description |
optionName |
string |
|
value |
bool? |
|
Returns
- Option
SetOptionValue(string, DateTime?)
public Option SetOptionValue(string optionName, DateTime? value)
Parameters
| Name | Type | Description |
optionName |
string |
|
value |
DateTime? |
|
Returns
- Option
SetOptionValue(string, int?)
public Option SetOptionValue(string optionName, int? value)
Parameters
| Name | Type | Description |
optionName |
string |
|
value |
int? |
|
Returns
- Option
SetOptionValue(string, string)
public Option SetOptionValue(string optionName, string value)
Parameters
| Name | Type | Description |
optionName |
string |
|
value |
string |
|
Returns
- Option
Inherited Members