TestimoX

API Reference

Class

AdmxPolicyDefinition

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers sealed

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 requiredposition: 0
Policy name.
displayName System.String requiredposition: 1
Display name identifier.
element ADPlayground.Gpo.GpoLocal.PolicyElement requiredposition: 2
Policy element information.
valueType System.UInt32 requiredposition: 3
Registry value type.
categoryName System.String requiredposition: 4
Optional category reference.
supportedOnName System.String requiredposition: 5
Optional supported-on reference name (e.g., SUPPORTED_Windows10) for targeting.

Methods

public Void AddElement(PolicyElement element) #
Returns: Void

Adds a presentation element to the policy.

Parameters

element ADPlayground.Gpo.GpoLocal.PolicyElement requiredposition: 0
Element to add.
public Void AddEnumItem(AdmxEnumItemDefinition item) #
Returns: Void

Adds an enumeration item.

Parameters

item ADPlayground.Gpo.GpoLocal.AdmxEnumItemDefinition requiredposition: 0
Item to add.

Properties

public String Name { get; } #

Gets the policy name.

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.