API Reference
AdmxPolicyDefinition
Represents a policy definition parsed from an ADMX file.
Inheritance
- Object
- AdmxPolicyDefinition
Constructors
public AdmxPolicyDefinition(String name, String displayName, PolicyElement element, UInt32 valueType, String categoryName, String supportedOnName) #Initializes a new instance of the AdmxPolicyDefinition class.
Parameters
- name System.String
- Policy name.
- displayName System.String
- Display name identifier.
- element ADPlayground.Gpo.GpoLocal.PolicyElement
- Policy element information.
- valueType System.UInt32
- Registry value type.
- categoryName System.String
- Optional category reference.
- supportedOnName System.String
- Optional supported-on reference name (e.g., SUPPORTED_Windows10) for targeting.
Methods
public Void AddElement(PolicyElement element) #VoidAdds a presentation element to the policy.
Parameters
- element ADPlayground.Gpo.GpoLocal.PolicyElement
- Element to add.
public Void AddEnumItem(AdmxEnumItemDefinition item) #VoidAdds an enumeration item.
Parameters
- item ADPlayground.Gpo.GpoLocal.AdmxEnumItemDefinition
- Item to add.
Inherited Methods
Properties
public String DisplayName { get; } #Gets the display name identifier.
public PolicyElement Element { get; } #Gets the policy element.
public UInt32 ValueType { get; } #Gets the registry value type.
public String CategoryName { get; } #Gets the referenced category name.
public String SupportedOnName { get; } #Gets the supportedOn definition reference name (e.g., SUPPORTED_Windows7) if present.
public String ExplainTextId { get; set; } #Gets the explain text string id, if specified on the policy.
public String PresentationId { get; set; } #Gets the policy presentation id (from the ADMX presentation attribute), when available. This id is used to bind ADML presentation controls (labels, UI hints) to this policy.
public IReadOnlyList<PolicyElement> Elements { get; } #Gets all presentation elements associated with this policy.
public IReadOnlyList<AdmxEnumItemDefinition> EnumItems { get; } #Gets enumeration items for enum policies.
public PolicyRegistryList AffectedValues { get; set; } #Optional policy-level affected value definitions for Enabled/Disabled.