A type description for a enumerated data type.
More...
Inherits UnifiedAutomation.UaBase.GenericDataType, and IEnumerable< GenericEnumeratedValue >.
A type description for a enumerated data type.
UnifiedAutomation.UaBase.GenericEnumeratedDataType.GenericEnumeratedDataType |
( |
| ) |
|
|
inline |
void UnifiedAutomation.UaBase.GenericEnumeratedDataType.Add |
( |
string |
name, |
|
|
int |
value |
|
) |
| |
|
inline |
Adds the field for the specified field name.
- Parameters
-
name | The name of the field. |
value | The field. |
Returns an enumerator that iterates through the collection.
- Returns
- A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
bool UnifiedAutomation.UaBase.GenericEnumeratedDataType.Remove |
( |
string |
name | ) |
|
|
inline |
Removes the field with the specified name.
- Parameters
-
name | The name of the field. |
- Returns
- The true if the field exists. False otherwise.
- Exceptions
-
System.ArgumentNullException | name |
override string UnifiedAutomation.UaBase.GenericEnumeratedDataType.ToString |
( |
string |
format, |
|
|
IFormatProvider |
formatProvider |
|
) |
| |
|
inlinevirtual |
Returns a System.String that represents this instance.
- Parameters
-
format | The format. |
formatProvider | The format provider. |
- Returns
- A System.String that represents this instance.
Reimplemented from UnifiedAutomation.UaBase.GenericDataType.
bool UnifiedAutomation.UaBase.GenericEnumeratedDataType.TryGetValue |
( |
string |
name, |
|
|
out int |
value |
|
) |
| |
|
inline |
Tries to the get value for the name.
- Parameters
-
name | The name. |
value | The value. |
- Returns
- TRUE if the name was found; FALSE otherwise.
bool UnifiedAutomation.UaBase.GenericEnumeratedDataType.TryGetValue |
( |
int |
value, |
|
|
out string |
name |
|
) |
| |
|
inline |
Tries to the get name for the value.
- Parameters
-
value | The value. |
name | The name. |
- Returns
- TRUE if the value was found; FALSE otherwise.
int UnifiedAutomation.UaBase.GenericEnumeratedDataType.Count |
|
get |
Gets the number of values in the enumeration.
The number of fields in the enumeration.
string UnifiedAutomation.UaBase.GenericEnumeratedDataType.this[int value] |
|
get |
Gets the name for the value.
- Parameters
-
- Returns
- The name if found.
int UnifiedAutomation.UaBase.GenericEnumeratedDataType.this[string name] |
|
get |
Gets the value for the name.
- Parameters
-
- Returns
- The value if found.
Gets the type class for the object.
The type class.
The documentation for this class was generated from the following file:
- D:/work/uasdknet_master/src/UaBase/Encoders/GenericDataType.cs