Show / Hide Table of Contents

Class ArchiveOrderByInfo

This class carries information about an ordering criterion for an archive

Inheritance
object
ArchiveOrderByInfo
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoCore.dll
Syntax
[DataContract]
public class ArchiveOrderByInfo

Constructors

ArchiveOrderByInfo()

Construct the object with a blank name and ascending sort

Declaration
public ArchiveOrderByInfo()

ArchiveOrderByInfo(string)

Construct the object with the given name and ascending sort

Declaration
public ArchiveOrderByInfo(string name)
Parameters
Type Name Description
string name

Programmatic name of the column to order by, semantically the same as the ArchiveColumnInfo Name

ArchiveOrderByInfo(string, OrderBySortType)

Construct the object with the given name and sort order

Declaration
public ArchiveOrderByInfo(string name, OrderBySortType direction)
Parameters
Type Name Description
string name

Programmatic name of the column to order by, semantically the same as the ArchiveColumnInfo Name

OrderBySortType direction

Direction of sort

Properties

Direction

Direction to order

Declaration
[DataMember]
public OrderBySortType Direction { get; set; }
Property Value
Type Description
OrderBySortType

Name

Programmatic name of the column to order by, semantically the same as the ArchiveColumnInfo Name.

Declaration
[DataMember]
public string Name { get; set; }
Property Value
Type Description
string

Methods

FromDelimitedString(string)

Converts a string with format: columnName,direction1;columnName2,direction2 to an enumerable of ArchiveOrderByInfo

Declaration
public static ArchiveOrderByInfo[] FromDelimitedString(string s)
Parameters
Type Name Description
string s

Delimited string

Returns
Type Description
ArchiveOrderByInfo[]

ToNameArray(params ArchiveOrderByInfo[])

Utility method to convert an array of ArchiveRestrictionInfo into a string array containing the names only

Declaration
public static string[] ToNameArray(params ArchiveOrderByInfo[] orderByInfos)
Parameters
Type Name Description
ArchiveOrderByInfo[] orderByInfos
Returns
Type Description
string[]

Array of names, in original order

ToString()

Convert this instance to a string for debug display

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

ToString(string)

This class carries information about an ordering criterion for an archive

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
string prefix
Returns
Type Description
string

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top