Click or drag to resize
RegisterApiControllerAttribute Class

Note: This API is now obsolete.

Specifies the API controller available for the application.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    CMS.WebApiRegisterApiControllerAttribute

Namespace: CMS.WebApi
Assembly: CMS.WebApi (in CMS.WebApi.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("This attribute is not needed anymore and your controllers will be registered even without the attribute. Just ensure that your controller is public and extends ApiController class.")]
public sealed class RegisterApiControllerAttribute : Attribute, 
	IPreInitAttribute, IDiscoverableAttribute

The RegisterApiControllerAttribute type exposes the following members.

Constructors
  NameDescription
Public methodRegisterApiControllerAttribute
Initializes a new instance of the RegisterApiControllerAttribute class.
Top
Methods
  NameDescription
Public methodPreInit
Registers the API controller with the API controller manager.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
  NameDescription
Public propertyMarkedType
Gets the type of the API controller.
Top
See Also