Show / Hide Table of Contents

Class Preference

One preference item, which contains a specification (section/key), the raw string value, and the level at which this value was found.

Carrier object for Preference. Services for the Preference Carrier is available from the Preference Agent.
Inheritance
object
Preference
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.1.0.0")]
public class Preference : Carrier

Constructors

Preference()

Default constructor

Declaration
public Preference()
See Also
IPreferenceAgent

Properties

DisplayTooltip

Display tooltip, populated when asked for. Suitable for binding display-datasource in lists, etc. Formatted using CultureDataFormatter.

Declaration
[DataMember]
public virtual string DisplayTooltip { get; set; }
Property Value
Type Description
string
See Also
IPreferenceAgent

DisplayType

Display type, populated when asked for.

Declaration
[DataMember]
public virtual PrefDescValueType DisplayType { get; set; }
Property Value
Type Description
PrefDescValueType
See Also
IPreferenceAgent

DisplayValue

Display value, populated when asked for. Suitable for binding display-datasource in lists, etc. Formatted using CultureDataFormatter.

Declaration
[DataMember]
public virtual string DisplayValue { get; set; }
Property Value
Type Description
string
See Also
IPreferenceAgent

Level

Preference level, using the standard enumerated type. Undefined is returned for preferences that do not have a current setting.

Declaration
[DataMember]
public virtual PreferenceLevel Level { get; set; }
Property Value
Type Description
PreferenceLevel
See Also
IPreferenceAgent

PrefDescId

The id of the prefdesc this preference is connected to

Declaration
[DataMember]
public virtual int PrefDescId { get; set; }
Property Value
Type Description
int
See Also
IPreferenceAgent

RawValue

Preference value

Declaration
[DataMember]
public virtual string RawValue { get; set; }
Property Value
Type Description
string
See Also
IPreferenceAgent

Specification

Preference specification, consisting of the section name and key name

Declaration
[DataMember]
public virtual PreferenceSpec Specification { get; set; }
Property Value
Type Description
PreferenceSpec
See Also
IPreferenceAgent

TabOrder

One preference item, which contains a specification (section/key), the raw string value, and the level at which this value was found.

Carrier object for Preference. Services for the Preference Carrier is available from the Preference Agent.
Declaration
[DataMember]
public virtual TabOrder TabOrder { get; set; }
Property Value
Type Description
TabOrder
See Also
IPreferenceAgent

TableName

For DisplayType=PrefDescValueType.ListTableRef, TableName will contain the name of the table which the value reference to.

Declaration
[DataMember]
public virtual string TableName { get; set; }
Property Value
Type Description
string
See Also
IPreferenceAgent

TargetId

The id of the target row. The table it points at is specified by the preference type.

Declaration
[DataMember]
public virtual int TargetId { get; set; }
Property Value
Type Description
int
See Also
IPreferenceAgent

UserPreferenceId

The id of the user preference

Declaration
[DataMember]
public virtual int UserPreferenceId { get; set; }
Property Value
Type Description
int
See Also
IPreferenceAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
string

The carrier contents.

See Also
IPreferenceAgent

ToString(string)

Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.

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

The line prefix (typically used for indenting)

Returns
Type Description
string

The carrier contents.

See Also
IPreferenceAgent

See Also

IPreferenceAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top