API Reference
PolicyDefinition
Represents a single policy definition parsed from ADMX/ADML files.
Inheritance
- Object
- PolicyDefinition
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property AdmxBundle.Policies
- Property AdmxDocument.DisplayNameIndex
- Property AdmxDocument.Policies
- Method AdmxLookupService.FindByDisplayName
- Property PolicyAuditResult.Definition
- Method PolicyProcessing.DeduplicatePolicies
- Method PolicyStateService.ResolvePolicyByName
- Method RegistryPolicyMatcher.FindCandidates
Accepted by parameters
- Constructor AdmxDocument.AdmxDocument
- Method AdmxPerPolicyExporter.ToReg
- Method LocalGpoSnapshot.AuditAgainst
- Constructor PolicyAuditResult.PolicyAuditResult
- Method PolicyProcessing.DeduplicatePolicies
- Method PolicyProcessing.GetElementStates
- Method PolicyProcessing.GetPolicyState
- Method PolicyProcessingWriter.SetPolicyState
- Method PolicyStateService.GetDetails
- Method PolicyStateService.GetState
- Method PolicyStateService.SetState
- Method PresentationResolver.BuildElementLabelMap
- Method PresentationResolver.BuildElementValueDisplay
- Method SupportEvaluator.Evaluate
- Method SupportEvaluator.IsSupportedOn
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
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
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).