API Reference
PolicyDefinition
Represents a single policy definition parsed from ADMX/ADML files.
Inheritance
- Object
- PolicyDefinition
Constructors
public PolicyDefinition(String name, String displayName, PolicyElement element, UInt32 valueType) #Initializes a new instance of the PolicyDefinition class.
Parameters
- name System.String
- Internal policy name.
- displayName System.String
- Localized display name.
- element ADPlayground.Gpo.GpoLocal.PolicyElement
- Policy element details.
- valueType System.UInt32
- Registry value type.
Inherited Methods
Properties
public String Name { get; } #Gets the internal policy name.
public String DisplayName { get; } #Gets the localized display name.
public PolicyElement Element { get; } #Gets the policy element information.
public IReadOnlyList<PolicyElement> Elements { get; } #Gets all policy elements defined for this policy (first element equals Element).
public String RegistryKey { get; } #Gets the registry key where the policy is stored.
public String ValueName { get; } #Gets the registry value name used by the policy.
public UInt32 ValueType { get; } #Gets the expected registry value type.
public CategoryInfo Category { get; set; } #Gets the category this policy belongs to.
public String SupportName { get; set; } #Gets the supportedOn reference name (e.g., SUPPORTED_Windows7) if defined.
public String PresentationId { get; set; } #Gets the policy presentation id (from the ADMX presentation attribute), when available. Used to bind ADML presentation controls (labels, UI hints) to this policy.
public String Source { get; set; } #Gets the ADMX source file name (e.g., fve.admx) that defined this policy.
public String Description { get; set; } #Gets the localized explain/description text for this policy, when available.
public IReadOnlyList<PolicyEnumItem> EnumItems { get; } #Gets enumeration items for the policy, if any.
public PolicyRegistryList AffectedValues { get; set; } #Optional policy-level affected values and lists for Enabled/Disabled states (e.g., enabledValue/disabledValue, enabledList/disabledList in ADMX).