Class WindowsServerFunctionCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of Windows server functions.
public class WindowsServerFunctionCollection : Collection<WindowsServerFunction>, IList<WindowsServerFunction>, ICollection<WindowsServerFunction>, IList, ICollection, IReadOnlyList<WindowsServerFunction>, IReadOnlyCollection<WindowsServerFunction>, IEnumerable<WindowsServerFunction>, IEnumerable
- Inheritance
-
WindowsServerFunctionCollection
- Implements
- Inherited Members
Constructors
WindowsServerFunctionCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsServerFunctionCollection class.
public WindowsServerFunctionCollection()
Methods
Add(WindowsServerFunctionType)
Adds a new enabled and active function to the collection.
public WindowsServerFunction Add(WindowsServerFunctionType functionType)
Parameters
functionType
WindowsServerFunctionTypeThe type of function to add.
Returns
Add(WindowsServerFunctionType, BooleanOption, BooleanOption)
Adds a new function to the collection.
public WindowsServerFunction Add(WindowsServerFunctionType functionType, BooleanOption isActive, BooleanOption isEnabled)
Parameters
functionType
WindowsServerFunctionTypeThe type of function to add.
isActive
BooleanOptionDetermines whether the function is active at the time of the scan.
isEnabled
BooleanOptionDetermines whether the function is enabled.
Returns
Add(WindowsServerFunctionType, BooleanOption, BooleanOption, string)
Adds a new function to the collection.
public WindowsServerFunction Add(WindowsServerFunctionType functionType, BooleanOption isActive, BooleanOption isEnabled, string instanceIdentifier)
Parameters
functionType
WindowsServerFunctionTypeThe type of function to add.
isActive
BooleanOptionDetermines whether the function is active at the time of the scan.
isEnabled
BooleanOptionDetermines whether the function is enabled.
instanceIdentifier
stringThe unique instance identifier for the function.
Returns
Sort()
Sorts the Windows server functions alphabetically.
public void Sort()
ToString()
Returns the server functions as a human readable string, one per line.
public override string ToString()
Returns
- string
The server functions as a human readable string, one per line.