Class WindowsSecurityOption
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a security option on a Windows machine - for example "Interactive logon: Do not require CTRL+ALT+DEL".
public class WindowsSecurityOption : GlobalSerializableClassicBase, IComparable<WindowsSecurityOption>
- Inheritance
-
WindowsSecurityOption
- Implements
Constructors
WindowsSecurityOption()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsSecurityOption class.
public WindowsSecurityOption()
Properties
ConfigurationSource
Gets or sets the configuration source for this security option.
public PolicyConfigurableSource ConfigurationSource { get; set; }
Property Value
DataType
Gets or sets the data type stored by this security option - for example "Integer" or "Bool".
public SecurityOptionDataType DataType { get; set; }
Property Value
DisplayName
Gets or sets the display name of this security option - for example "Interactive logon: Do not require CTRL+ALT+DEL".
public string DisplayName { get; set; }
Property Value
IsDeleted
Gets or sets whether the security option is applied by a Group Policy delete action.
public BooleanOption IsDeleted { get; set; }
Property Value
SettingName
Gets or sets the unique name of this security option - for example "DisableCAD".
public string SettingName { get; set; }
Property Value
Remarks
The name of the security option is defined by CENTREL Solutions as there is no specified key value defined by Microsoft.
Value
Gets or sets the value of this setting.
public string Value { get; set; }
Property Value
ValueString
Gets the human readable version of this data type, resolving enum values where required.
public string ValueString { get; set; }
Property Value
Remarks
Boolean values True and False are converted to "Enabled" or "Disabled" respectively to match the Microsoft user interface.
Methods
CompareTo(WindowsSecurityOption)
Compares two CENTREL.XIA.Configuration.Types.WindowsSecurityOption objects to allow sorting alphabetically by display name.
public int CompareTo(WindowsSecurityOption other)
Parameters
other
WindowsSecurityOptionThe CENTREL.XIA.Configuration.Types.WindowsSecurityOption to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.WindowsSecurityOption objects.
GetDisplayName(string)
Gets the display name of the setting with the specified setting name.
public static string GetDisplayName(string settingName)
Parameters
settingName
stringThe name of the setting for which the display name is to be returned.
Returns
- string
The display name of the setting with the specified setting name.
GetSecurityOptionValue(string, int)
Gets the security option value.
public static string GetSecurityOptionValue(string settingName, int value)
Parameters
settingName
stringThe name of the setting - for example "LmCompatibilityLevel".
value
intThe configured value to resolve - for example 3.
Returns
- string
The resolved value name - for example "Send NTLMv2 response only".
GetSecurityOptionValue(string, string)
Gets the security option value.
public static string GetSecurityOptionValue(string settingName, string value)
Parameters
settingName
stringThe name of the setting - for example "LmCompatibilityLevel".
value
stringThe configured value to resolve - for example "3".
Returns
- string
The resolved value name - for example "Send NTLMv2 response only".
ToString()
Returns the security option as a human readable string.
public override string ToString()
Returns
- string
The security option as a human readable string.