Method AddEntry
- Namespace
- Skyline.DataMiner.Net.GenericEnums
- Assembly
- SLNetTypes.dll
AddEntry(string, T)
Adds a new entry to the enum with the specified display name and value.
public void AddEntry(string displayName, T value)
Parameters
displayName
stringThe display name.
value
TThe value.
Exceptions
- ArgumentNullException
displayName
orvalue
is null.- InvalidOperationException
The specified display name or value is already added.
AddEntry(string, T, bool)
Adds a new entry to the enum with the specified display name and value.
public void AddEntry(string displayName, T value, bool isHidden)
Parameters
displayName
stringThe display name.
value
TThe value.
isHidden
boolValue indicating whether this entry is hidden.
Remarks
Feature introduced in DataMiner 9.6.11 (RN 22628).
Exceptions
- ArgumentNullException
displayName
orvalue
is null.- InvalidOperationException
The specified display name or value is already added.