Share via


ODataRoutingAttribute.Initialize Method

Definition

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

public void Initialize (System.Web.Http.Controllers.HttpControllerSettings controllerSettings, System.Web.Http.Controllers.HttpControllerDescriptor controllerDescriptor);
abstract member Initialize : System.Web.Http.Controllers.HttpControllerSettings * System.Web.Http.Controllers.HttpControllerDescriptor -> unit
override this.Initialize : System.Web.Http.Controllers.HttpControllerSettings * System.Web.Http.Controllers.HttpControllerDescriptor -> unit
Public Sub Initialize (controllerSettings As HttpControllerSettings, controllerDescriptor As HttpControllerDescriptor)

Parameters

controllerSettings
System.Web.Http.Controllers.HttpControllerSettings

The controller settings to initialize.

controllerDescriptor
System.Web.Http.Controllers.HttpControllerDescriptor

The controller descriptor. Note that the System.Web.Http.Controllers.HttpControllerDescriptor can be associated with the derived controller type given that System.Web.Http.Controllers.IControllerConfiguration is inherited.

Implements

System.Web.Http.Controllers.IControllerConfiguration.Initialize(System.Web.Http.Controllers.HttpControllerSettings,System.Web.Http.Controllers.HttpControllerDescriptor)

Applies to