Adds the specified API controller type to a collection.
Namespace: CMS.WebApiAssembly: CMS.WebApi (in CMS.WebApi.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- controllerType
- Type:
System Type
The type of the API controller.
Exceptions
Exception | Condition |
---|---|
![]() | The type of API controller is not specified. |
![]() | The specified type does not inherit from the ApiController class. |
See Also