Class Parsers
Converts a string into an array of ArchiveRestrictionInfo objects.
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.dll
Syntax
public class Parsers
Constructors
Parsers()
Converts a string into an array of ArchiveRestrictionInfo objects.
Declaration
public Parsers()
Methods
ParseColumns(string)
Parse "foo,bar, quux" into array of bare names: { "foo", "bar", "quux" }.
Declaration
public static string[] ParseColumns(string columns)
Parameters
Type | Name | Description |
---|---|---|
string | columns | Comma separated names in string: "foo,bar, quux" |
Returns
Type | Description |
---|---|
string[] | string array: { "foo", "bar", "quux" } |
ParseOrderBy(string)
Declaration
public static ArchiveOrderByInfo[] ParseOrderBy(string orderBy)
Parameters
Type | Name | Description |
---|---|---|
string | orderBy | "name asc, dept desc" |
Returns
Type | Description |
---|---|
ArchiveOrderByInfo[] | Order by info objects |
ParseRestrictions(string)
Declaration
public static ArchiveRestrictionInfo[] ParseRestrictions(string restrictions)
Parameters
Type | Name | Description |
---|---|---|
string | restrictions | OData like filter string. |
Returns
Type | Description |
---|---|
ArchiveRestrictionInfo[] | Array of ArchiveRestrictionInfo objects. ArgumentException if parse error. |