C# Class OurUmbraco.OutgoingDateTimeFormatAttribute

Sets the json outgoing/serialized datetime format
Inheritance: System.Attribute, IControllerConfiguration
Afficher le fichier Open project: umbraco/OurUmbraco

Méthodes publiques

Méthode Description
Initialize ( System.Web.Http.Controllers.HttpControllerSettings controllerSettings, HttpControllerDescriptor controllerDescriptor ) : void
OutgoingDateTimeFormatAttribute ( ) : System

Will use the standard ISO format

OutgoingDateTimeFormatAttribute ( string format ) : System

Specify a custom format

Method Details

Initialize() public méthode

public Initialize ( System.Web.Http.Controllers.HttpControllerSettings controllerSettings, HttpControllerDescriptor controllerDescriptor ) : void
controllerSettings System.Web.Http.Controllers.HttpControllerSettings
controllerDescriptor HttpControllerDescriptor
Résultat void

OutgoingDateTimeFormatAttribute() public méthode

Will use the standard ISO format
public OutgoingDateTimeFormatAttribute ( ) : System
Résultat System

OutgoingDateTimeFormatAttribute() public méthode

Specify a custom format
public OutgoingDateTimeFormatAttribute ( string format ) : System
format string
Résultat System