Intl
Configure result field to use a JavaScript Intl formatter
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class Intl : MetadataAttributeBase, _Attribute, IReflectAttributeFilter
Properties
Type
View Source
Declaration
public IntlFormat Type { get; set; }
Locale
View Source
Declaration
public string Locale { get; set; }
Options
View Source
Declaration
public string Options { get; set; }
Date
View Source
Declaration
public DateStyle Date { get; set; }
Time
View Source
Declaration
public TimeStyle Time { get; set; }
Number
View Source
Declaration
public NumberStyle Number { get; set; }
RelativeTime
View Source
Declaration
public RelativeTimeStyle RelativeTime { get; set; }
Numeric
View Source
Declaration
public Numeric Numeric { get; set; }
Currency
Use ServiceStack.NumberCurrency for typed values
View Source
Declaration
public string Currency { get; set; }
CurrencyDisplay
View Source
Declaration
public CurrencyDisplay CurrencyDisplay { get; set; }
CurrencySign
View Source
Declaration
public CurrencySign CurrencySign { get; set; }
SignDisplay
View Source
Declaration
public SignDisplay SignDisplay { get; set; }
RoundingMode
View Source
Declaration
public RoundingMode RoundingMode { get; set; }
Unit
Use ServiceStack.NumberUnit for typed values
View Source
Declaration
public string Unit { get; set; }
UnitDisplay
View Source
Declaration
public UnitDisplay UnitDisplay { get; set; }
Notation
View Source
Declaration
public Notation Notation { get; set; }
MinimumIntegerDigits
View Source
Declaration
public int MinimumIntegerDigits { get; set; }
MinimumFractionDigits
View Source
Declaration
public int MinimumFractionDigits { get; set; }
MaximumFractionDigits
View Source
Declaration
public int MaximumFractionDigits { get; set; }
MinimumSignificantDigits
View Source
Declaration
public int MinimumSignificantDigits { get; set; }
MaximumSignificantDigits
View Source
Declaration
public int MaximumSignificantDigits { get; set; }
FractionalSecondDigits
View Source
Declaration
public int FractionalSecondDigits { get; set; }
Weekday
View Source
Declaration
public DateText Weekday { get; set; }
Era
View Source
Declaration
public DateText Era { get; set; }
Year
View Source
Declaration
public DatePart Year { get; set; }
Month
View Source
Declaration
public DateMonth Month { get; set; }
Day
View Source
Declaration
public DatePart Day { get; set; }
Hour
View Source
Declaration
public DatePart Hour { get; set; }
Minute
View Source
Declaration
public DatePart Minute { get; set; }
Second
View Source
Declaration
public DatePart Second { get; set; }
TimeZoneName
View Source
Declaration
public DateText TimeZoneName { get; set; }
TimeZone
View Source
Declaration
public string TimeZone { get; set; }
Hour12
View Source
Declaration
public bool Hour12 { get; set; }
Inherited Methods
ShouldInclude(PropertyInfo, String)
Don't include default bool or nullable int default values
View Source
Declaration
public virtual bool ShouldInclude(PropertyInfo pi, string value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | pi |
System.String | value |
Implements
System.Runtime.InteropServices._Attribute
- ServiceStack.IReflectAttributeFilter