Compartir a través de


ODataRoutingAttribute.Initialize Método

Definición

La devolución de llamada que se invoca para realizar reemplazos por controlador para este 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)

Parámetros

controllerSettings
System.Web.Http.Controllers.HttpControllerSettings

La configuración del controlador que se va a inicializar.

controllerDescriptor
System.Web.Http.Controllers.HttpControllerDescriptor

El descriptor del controlador. Tenga en cuenta que System.Web.Http.Controllers.HttpControllerDescriptor puede asociarse con el tipo de controlador derivado dado que System.Web.Http.Controllers.IControllerConfiguration se hereda.

Implementaciones

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

Se aplica a