API Reference
AdmxRepository
Provides cached access to parsed ADMX/ADML data.
Inheritance
- Object
- AdmxRepository
Methods
public AdmxDocument Get(String admxPath, String admlPath) #AdmxDocumentGets the parsed document for the specified ADMX and ADML paths.
Parameters
- admxPath System.String
- Path to the ADMX file.
- admlPath System.String
- Path to the ADML file.
Returns
Parsed ADMX document.
public AdmxDocument GetCentralStoreDocument(String domainName, String language = null) #AdmxDocumentLoads the domain Central Store (\\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions) with language fallback.
Parameters
- domainName System.String
- DNS domain name (e.g., corp.example.com).
- language System.String = null
- Preferred language (e.g., en-US). Falls back to en-US, then first available.
public AdmxDocument GetDirectories(IEnumerable<String> directories, String language = null) #AdmxDocumentParses all ADMX files across multiple directories and merges their categories and policies.
Parameters
- directories System.Collections.Generic.IEnumerable{System.String}
- Directories containing ADMX files.
- language System.String = null
- Optional language subfolder for ADML files.
public AdmxDocument GetDirectoriesWithFallback(IEnumerable<String> directories, String language = null) #AdmxDocumentLoads multiple directories and merges ADMX/ADML files, falling back across directories to resolve missing ADML resources when necessary.
Parameters
- directories System.Collections.Generic.IEnumerable{System.String}
- Directories to scan for ADMX files.
- language System.String = null
- Preferred language (e.g., en-US). Falls back to en-US, then first available.
Returns
Compiled document merging the provided directories.
public AdmxDocument GetDirectory(String directory, String language = null) #AdmxDocumentParses all ADMX files in the specified directory and merges their categories and policies.
Parameters
- directory System.String
- Directory containing ADMX files.
- language System.String = null
- Optional language subfolder for ADML files. If null, ADML files are expected next to ADMX files.
Returns
Merged ADMX document.
public AdmxDocument GetDirectoryWithFallback(String directory, String language = null) #AdmxDocumentLike GetDirectory, but when language is null or no ADMLs are found, falls back to en-US and then any first available language folder.
Parameters
- directory System.String
- language System.String = null
Inherited Methods
Properties
public static AdmxRepository Instance { get; } #Gets the singleton instance.