Interface IServerContext
Context for serializing/deserializing native types (e.g. DateTime
, double
, boolean
, etc.)
Inherited Members
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public interface IServerContext : IFormatProvider, ICustomFormatter
Properties
| Improve this Doc View SourceDefaultLanguageCode
Gets the default language code configured for the Aras user
Declaration
string DefaultLanguageCode { get; }
Property Value
Type | Description |
---|---|
System.String |
DefaultLanguageSuffix
Gets the default language suffix configured for the Aras user
Declaration
string DefaultLanguageSuffix { get; }
Property Value
Type | Description |
---|---|
System.String |
LanguageCode
Gets the language code configured for the Aras user
Declaration
string LanguageCode { get; }
Property Value
Type | Description |
---|---|
System.String |
LanguageSuffix
Gets the language suffix configured for the Aras user
Declaration
string LanguageSuffix { get; }
Property Value
Type | Description |
---|---|
System.String |
Locale
Gets the locale configured for the user.
Declaration
string Locale { get; }
Property Value
Type | Description |
---|---|
System.String |
TimeZone
Gets the corporate time zone ID for the Aras installation
Declaration
string TimeZone { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceAsBoolean(Object)
Converts the System.Object to a System.Boolean based on the locale and time zone
Declaration
bool ? AsBoolean(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Boolean> |
|
AsDateTime(Object)
Converts the System.Object representing a date in the corporate time zone to a System.DateTime in the local time zone
Declaration
DateTime? AsDateTime(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTime> |
|
AsDateTimeOffset(Object)
Converts the System.Object representing a date in the corporate time zone to a System.DateTimeOffset in the local time zone
Declaration
DateTimeOffset? AsDateTimeOffset(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTimeOffset> |
|
AsDateTimeUtc(Object)
Converts the System.Object representing a date in the corporate time zone to a System.DateTime in the UTC time zone
Declaration
DateTime? AsDateTimeUtc(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTime> |
|
AsDecimal(Object)
Converts the System.Object to a System.Decimal based on the locale and time zone
Declaration
decimal ? AsDecimal(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Decimal> |
|
AsDouble(Object)
Converts the System.Object to a System.Double based on the locale and time zone
Declaration
double ? AsDouble(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Double> |
|
AsInt(Object)
Converts the System.Object to a System.Int32 based on the locale and time zone
Declaration
int ? AsInt(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Int32> |
|
AsLong(Object)
Converts the System.Object to a System.Int64 based on the locale and time zone
Declaration
long ? AsLong(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Int64> |
|
Format(Object)
Serializes the value to a string. Dates are converted to the corporate time zone
Declaration
string Format(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to serialize. |
Returns
Type | Description |
---|---|
System.String | A string representing the value |