ODataFormattingAttribute.Initialize Method
Callback invoked to set per-controller overrides for this controllerDescriptor.
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Sub Initialize ( _
controllerSettings As HttpControllerSettings, _
controllerDescriptor As HttpControllerDescriptor _
)
'Usage
Dim instance As ODataFormattingAttribute
Dim controllerSettings As HttpControllerSettings
Dim controllerDescriptor As HttpControllerDescriptor
instance.Initialize(controllerSettings, _
controllerDescriptor)
public void Initialize(
HttpControllerSettings controllerSettings,
HttpControllerDescriptor controllerDescriptor
)
public:
virtual void Initialize(
HttpControllerSettings^ controllerSettings,
HttpControllerDescriptor^ controllerDescriptor
) sealed
abstract Initialize :
controllerSettings:HttpControllerSettings *
controllerDescriptor:HttpControllerDescriptor -> unit
override Initialize :
controllerSettings:HttpControllerSettings *
controllerDescriptor:HttpControllerDescriptor -> unit
public final function Initialize(
controllerSettings : HttpControllerSettings,
controllerDescriptor : HttpControllerDescriptor
)
Parameters
- controllerSettings
Type: System.Web.Http.Controllers.HttpControllerSettings
The controller settings to initialize.
- controllerDescriptor
Type: System.Web.Http.Controllers.HttpControllerDescriptor
The controller descriptor. Note that the HttpControllerDescriptor can be associated with the derived controller type given that IControllerConfiguration is inherited.
Implements
IControllerConfiguration.Initialize(HttpControllerSettings, HttpControllerDescriptor)