API Reference
Class
SpolFile
Represents a Semantic Policy (SPOL) file: a simple text format that captures registry policy entries as Key|Value|Kind|Data rows. Provides parse/serialize and conversion to/from PolFile for application to policy sources.
Inheritance
- Object
- SpolFile
Constructors
public SpolFile() #Methods
public Void Apply(IPolicySource target) #Returns:
VoidApplies this SPOL to a target policy source by materializing a PolFile and writing it.
Parameters
- target ADPlayground.Gpo.GpoLocal.IPolicySource
- Destination policy source.
public Void ApplyDifference(SpolFile oldVersion, IPolicySource target) #Returns:
VoidApplies only the differences between this SPOL and an optional previous version.
Parameters
- oldVersion ADPlayground.Gpo.GpoLocal.SpolFile
- Previous SPOL to diff against; when null, a full apply is performed.
- target ADPlayground.Gpo.GpoLocal.IPolicySource
- Destination policy source.
public static SpolFile FromPolFile(PolFile pol) #Returns:
SpolFileCreates a SPOL file from an existing PolFile by enumerating its entries.
Parameters
- pol ADPlayground.Gpo.GpoLocal.PolFile
- Source registry.pol model.
Returns
SPOL model containing all entries from pol.
public static SpolFile Parse(String text) #Returns:
SpolFileParses SPOL text into a SpolFile.
Parameters
- text System.String
- Input SPOL content (Key|Value|Kind|Data per line).
Returns
Parsed SPOL model.
public String Serialize() #Returns:
StringSerializes this SPOL model back to text (Key|Value|Kind|Data per line).
Returns
SPOL text.
Inherited Methods
Properties
public IEnumerable<SpolEntry> Entries { get; } #Enumerates policy entries contained in this SPOL file.