API Reference
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
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
- Method SpolFile.FromPolFile
- Method SpolFile.Parse
Accepted by parameters
- Method SpolFile.ApplyDifference
Constructors
public SpolFile() #Methods
public Void Apply(IPolicySource target) #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) #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) #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) #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() #StringSerializes this SPOL model back to text (Key|Value|Kind|Data per line).
Returns
SPOL text.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public IEnumerable<SpolEntry> Entries { get; } #Enumerates policy entries contained in this SPOL file.