ODataFormattingAttribute Class

 

An attribute to be placed on controllers that enables the OData formatters.

Namespace:   System.Web.OData
Assembly:  System.Web.OData (in System.Web.OData.dll)

System::Object
  System::Attribute
    System.Web.OData::ODataFormattingAttribute

[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, 
	Inherited = true)]
public ref class ODataFormattingAttribute : Attribute, IControllerConfiguration

NameDescription
System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodCreateODataFormatters()

Creates the OData formatters.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Attribute.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitialize(HttpControllerSettings^, HttpControllerDescriptor^)

Callback invoked to set per-controller overrides for this controllerDescriptor.

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object^)

(Inherited from Attribute.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This attribute does the following actions:

[list type="number"] [item] [description] It inserts the ODataMediaTypeFormatters into the [see cref="P:System.Web.Http.Controllers.HttpControllerSettings.Formatters" /] collection. [/description] [/item] [item] [description]It attaches the request to the OData formatter instance.[/description] [/item] [/list]

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: