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
displayNamestringThe display name.
valueTThe value.
Exceptions
- ArgumentNullException
displayNameorvalueis 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
displayNamestringThe display name.
valueTThe value.
isHiddenboolValue indicating whether this entry is hidden.
Remarks
Feature introduced in DataMiner 9.6.11 (RN 22628).
Exceptions
- ArgumentNullException
displayNameorvalueis null.- InvalidOperationException
The specified display name or value is already added.