Skip to main content

FormatAttribute

Format Results to use custom formatting function. Can use any available JS function, see ServiceStack.FormatMethods for built-in format functions

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class FormatAttribute : AttributeBase, _Attribute

Properties

Method

Name of available JS function, see ServiceStack.FormatMethods for built-in functions

View Source
Declaration
public string Method { get; set; }

Options

View Source
Declaration
public string Options { get; set; }

Locale

View Source
Declaration
public string Locale { get; set; }

Implements

  • System.Runtime.InteropServices._Attribute