ODataFormattingAttribute Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Atrybut do umieszczenia na kontrolerach, który umożliwia formatery OData.
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public class ODataFormattingAttribute : Attribute, System.Web.Http.Controllers.IControllerConfiguration
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public class ODataFormattingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ODataFormattingAttribute = class
inherit Attribute
interface IControllerConfiguration
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ODataFormattingAttribute = class
inherit Attribute
Public Class ODataFormattingAttribute
Inherits Attribute
Implements IControllerConfiguration
Public Class ODataFormattingAttribute
Inherits Attribute
- Dziedziczenie
-
ODataFormattingAttribute
- Atrybuty
- Implementuje
-
System.Web.Http.Controllers.IControllerConfiguration
Uwagi
Ten atrybut wykonuje następujące akcje:
- Wstawia on element ODataMediaTypeFormatters do kolekcji System.Web.Http.Controllers.HttpControllerSettings.Formatters .
- Dołącza żądanie do wystąpienia formatu OData.
Konstruktory
ODataFormattingAttribute() |
Atrybut do umieszczenia na kontrolerach, który umożliwia formatery OData. |
Metody
CreateODataFormatters() |
Tworzy formatery OData. |
Initialize(HttpControllerSettings, HttpControllerDescriptor) |
Wywołanie zwrotne wywoływane w celu ustawienia przesłonięć kontrolera dla tego kontroleraDescriptor. |