SettingValue Sealed Class
Subclass of System.ComponentModel.INotifyPropertyChanged, ISerializable. A special container to hold a setting value.
Properties
| Type | Signature |
| object |
Value
The underlying raw value. |
| Type |
ValueType
Return the underlying base type of the current value of this instance. |
Methods
| Type | Signature |
| SettingsCollection |
GetCollection(SettingsCollection defaultValue = null)
Get the current value as a SettingsCollection. |
| static operator |
SettingsCollection(SettingValue value)
Get the current value as a SettingsCollection. |
| string |
GetString(string defaultValue = null)
Get the current value as a string. |
| static operator |
string(SettingValue value)
Get the current value as a string. |
| bool? |
GetBool(bool? defaultValue = null)
Get the current value as a bool. |
| static operator |
bool?(SettingValue value)
Get the current value as a bool. |
| Int32? |
GetInt32(Int32? defaultValue = null)
Get the current value as a Int32. |
| static operator |
Int32?(SettingValue value)
Get the current value as a Int32. |
| Int64? |
GetInt64(Int64? defaultValue = null)
Get the current value as a Int64. |
| static operator |
Int64?(SettingValue value)
Get the current value as a Int64. |
| Guid? |
GetGuid(Guid? defaultValue = null)
Get the current value as a Guid. |
| static operator |
Guid?(SettingValue value)
Get the current value as a Guid. |
| Double? |
GetDouble(Double? defaultValue = null)
Get the current value as a Double. |
| static operator |
Double?(SettingValue value)
Get the current value as a Double. |
| byte? |
GetByte(byte? defaultValue = null)
Get the current value as a byte. |
| static operator |
byte?(SettingValue value)
Get the current value as a byte. |
| DateTime? |
GetDateTime(DateTime? defaultValue = null)
Get the current value as a DateTime. |
| static operator |
DateTime?(SettingValue value)
Get the current value as a DateTime. |
| string[] |
GetStringArray(string[] defaultValue = null)
Get the current value as a string[]. |
| static operator |
string[](SettingValue value)
Get the current value as a string[]. |
| bool[] |
GetBoolArray(bool[] defaultValue = null)
Get the current value as a bool[]. |
| static operator |
bool[](SettingValue value)
Get the current value as a bool?[]. |
| Int32[] |
GetInt32Array(Int32[] defaultValue = null)
Get the current value as a Int32[]. |
| static operator |
Int32[](SettingValue value)
Get the current value as a Int32[]. |
| Int64[] |
GetInt64Array(Int64[] defaultValue = null)
Get the current value as a Int64[]. |
| static operator |
Int64[](SettingValue value)
Get the current value as a Int64[]. |
| Guid[] |
GetGuidArray(Guid[] defaultValue = null)
Get the current value as a Guid[]. |
| static operator |
Guid[](SettingValue value)
Get the current value as a Guid[]. |
| Double[] |
GetDoubleArray(Double[] defaultValue = null)
Get the current value as a Double[]. |
| static operator |
Double[](SettingValue value)
Get the current value as a Double[]. |
| byte[] |
GetByteArray(byte[] defaultValue = null)
Get the current value as a byte[]. |
| static operator |
byte[](SettingValue value)
Get the current value as a byte[]. |
| DateTime[] |
GetDateTimeArray(DateTime[] defaultValue = null)
Get the current value as a DateTime[]. |
| static operator |
DateTime[](SettingValue value)
Get the current value as a DateTime[]. |
| void |
Clear()
Clears the current underlying value by setting it to null. |
| void |
Set(string value)
Set the current value to a string. |
| static operator |
SettingValue(string value)
Set the current value to a string. |
| void |
Set(bool value)
Set the current value to a bool. |
| static operator |
SettingValue(bool value)
Set the current value to a bool. |
| void |
Set(int value)
Set the current value to a int. |
| static operator |
SettingValue(int value)
Set the current value to a int. |
| void |
Set(Guid value)
Set the current value to a Guid. |
| static operator |
SettingValue(Guid value)
Set the current value to a Guid. |
| void |
Set(long value)
Set the current value to a long. |
| static operator |
SettingValue(long value)
Set the current value to a long. |
| void |
Set(double value)
Set the current value to a double. |
| static operator |
SettingValue(double value)
Set the current value to a double. |
| void |
Set(byte value)
Set the current value to a byte. |
| static operator |
SettingValue(byte value)
Set the current value to a byte. |
| void |
Set(DateTime value)
Set the current value to a DateTime. |
| static operator |
SettingValue(DateTime value)
Set the current value to a DateTime. |
| void |
Set(string[] value)
Set the current value to a string[]. |
| static operator |
SettingValue(string[] value)
Set the current value to a string[]. |
| void |
Set(bool[] value)
Set the current value to a bool[]. |
| static operator |
SettingValue(bool[] value)
Set the current value to a bool[]. |
| void |
Set(int[] value)
Set the current value to a int[]. |
| static operator |
SettingValue(int[] value)
Set the current value to a int[]. |
| void |
Set(Guid[] value)
Set the current value to a Guid[]. |
| static operator |
SettingValue(Guid[] value)
Set the current value to a Guid[]. |
| void |
Set(long[] value)
Set the current value to a long[]. |
| static operator |
SettingValue(long[] value)
Set the current value to a long[]. |
| void |
Set(double[] value)
Set the current value to a double[]. |
| static operator |
SettingValue(double[] value)
Set the current value to a double[]. |
| void |
Set(byte[] value)
Set the current value to a byte[]. |
| static operator |
SettingValue(byte[] value)
Set the current value to a byte[]. |
| void |
Set(DateTime[] value)
Set the current value to a DateTime[]. |
| static operator |
SettingValue(DateTime[] value)
Set the current value to a DateTime[]. |
| void |
Set(SettingsCollection value)
Set the current value to a SettingsCollection. |
| static operator |
SettingValue(SettingsCollection value)
Set the current value to a SettingsCollection. |
| Constructor |
SettingValue()
Initializes a new instance of the SettingValue class. |
| string |
ToString()
Returns a string that represents the current object. |
Events
| Type | Signature |
| System.ComponentModel.PropertyChangedEventHandler |
PropertyChanged
Occurs when a property value changes. |