TestimoX

API Reference

Class

AdmxExplorerExportStore

Namespace ADPlayground.Gpo.GpoLocal
Assembly ADPlayground
Modifiers static

Persists AdmxExplorerExport documents as JSON files for static website or artifact scenarios.

Inheritance

  • Object
  • AdmxExplorerExportStore

Methods

Save 2 overloads
public static String Save(String path, String admxDirectory = null, String domainName = null, String language = null, Boolean indented = true, IReadOnlyList<AdmxExplorerSourcePackageMetadata> sourcePackageMetadata = null) #
Returns: String

Builds an explorer export and writes it to disk as UTF-8 JSON without BOM.

Parameters

path System.String requiredposition: 0
Destination JSON path.
admxDirectory System.String = null optionalposition: 1
Optional explicit PolicyDefinitions directory.
domainName System.String = null optionalposition: 2
Optional domain name used for Central Store discovery.
language System.String = null optionalposition: 3
Preferred ADML language.
indented System.Boolean = true optionalposition: 4
When set, the JSON is formatted for readability.
sourcePackageMetadata System.Collections.Generic.IReadOnlyList{ADPlayground.Gpo.GpoLocal.AdmxExplorerSourcePackageMetadata} = null optionalposition: 5
Optional package-level metadata used by split bundle exports.

Returns

Normalized output path.

public static String Save(String path, AdmxExplorerExport export, Boolean indented = true) #
Returns: String

Writes an existing explorer export document to disk as UTF-8 JSON without BOM.

Parameters

path System.String requiredposition: 0
Destination JSON path.
export ADPlayground.Gpo.GpoLocal.AdmxExplorerExport requiredposition: 1
Typed export document.
indented System.Boolean = true optionalposition: 2
When set, the JSON is formatted for readability.

Returns

Normalized output path.

SaveBundle 2 overloads
public static String SaveBundle(String directoryPath, String admxDirectory = null, String domainName = null, String language = null, Boolean indented = true, AdmxExplorerBundleMode bundleMode = Website, IReadOnlyList<AdmxExplorerSourcePackageMetadata> sourcePackageMetadata = null) #
Returns: String

Builds an explorer export and writes a split bundle composed of a manifest plus source-specific payload files.

Parameters

directoryPath System.String requiredposition: 0
Destination bundle directory.
admxDirectory System.String = null optionalposition: 1
Optional explicit PolicyDefinitions directory.
domainName System.String = null optionalposition: 2
Optional domain name used for Central Store discovery.
language System.String = null optionalposition: 3
Preferred ADML language.
indented System.Boolean = true optionalposition: 4
When set, the JSON is formatted for readability.
bundleMode ADPlayground.Gpo.GpoLocal.AdmxExplorerBundleMode = Website optionalposition: 5
Payload shaping mode for split source files.
sourcePackageMetadata System.Collections.Generic.IReadOnlyList{ADPlayground.Gpo.GpoLocal.AdmxExplorerSourcePackageMetadata} = null optionalposition: 6
Optional package-level metadata used to label package source groups.

Returns

Normalized manifest path.

public static String SaveBundle(String directoryPath, AdmxExplorerExport export, Boolean indented = true, AdmxExplorerBundleMode bundleMode = Website) #
Returns: String

Writes a split bundle composed of a manifest plus source-specific payload files.

Parameters

directoryPath System.String requiredposition: 0
Destination bundle directory.
export ADPlayground.Gpo.GpoLocal.AdmxExplorerExport requiredposition: 1
Typed export document.
indented System.Boolean = true optionalposition: 2
When set, the JSON is formatted for readability.
bundleMode ADPlayground.Gpo.GpoLocal.AdmxExplorerBundleMode = Website optionalposition: 3
Payload shaping mode for split source files.

Returns

Normalized manifest path.