API Reference
Class
LgpoTextService
Parser/writer and converter for LGPO.exe 4-line text format.
Inheritance
- Object
- LgpoTextService
Methods
public static Void ApplyToPol(PolFile pol, IEnumerable<LgpoTextEntry> entries) #Returns:
VoidApplies entries to a PolFile (Computer/User/MLGPO caller decides which entries are relevant).
Parameters
- pol ADPlayground.Gpo.GpoLocal.PolFile
- entries System.Collections.Generic.IEnumerable{ADPlayground.Gpo.GpoLocal.LgpoTextEntry}
public static String Build(IEnumerable<LgpoTextEntry> entries) #Returns:
StringSerializes entries to LGPO text content.
Parameters
- entries System.Collections.Generic.IEnumerable{ADPlayground.Gpo.GpoLocal.LgpoTextEntry}
public static String BuildFromPol(PolFile pol, LgpoTarget target) #Returns:
StringConverts a PolFile to LGPO text content for the specified target.
Parameters
- pol ADPlayground.Gpo.GpoLocal.PolFile
- target ADPlayground.Gpo.GpoLocal.LgpoTarget
public static IReadOnlyList<LgpoTextEntry> FromPol(PolFile pol, LgpoTarget target) #Returns:
IReadOnlyList<LgpoTextEntry>Builds LGPO text entries from a PolFile for a given target.
Parameters
- pol ADPlayground.Gpo.GpoLocal.PolFile
- target ADPlayground.Gpo.GpoLocal.LgpoTarget
Parse 2 overloads
public static IReadOnlyList<LgpoTextEntry> Parse(String text, out IReadOnlyList<String> warnings) #Returns:
IReadOnlyList<LgpoTextEntry>Parses LGPO text content and returns entries plus warnings.
Parameters
- text System.String
- LGPO.exe 4-line text content.
- warnings System.Collections.Generic.IReadOnlyList{System.String}@
- Additional non-fatal warnings detected during parsing.
Exceptions
FormatException– Thrown when the input contains invalid numeric or binary encodings.
public static IReadOnlyList<LgpoTextEntry> Parse(String text) #Returns:
IReadOnlyList<LgpoTextEntry>Parses LGPO text content.
Parameters
- text System.String