Skip to content

DefaultHandlerAttribute class

namespace: Serenity.Services   assemblySerenity.Net.Services

Specifies that the class this attribute is attached to is the default handler (list, create, delete, update etc.) and should be used by some behaviors like MasterDetailRelationBehavior instead of creating a generic handler.

[AttributeUsage(AttributeTargets.Class)]
public class DefaultHandlerAttribute : Attribute
parameter description
isDefault True to specify this as default. Default is true.

Public Members

name description
DefaultHandlerAttribute(…) Specifies that the class this attribute is attached to is the default handler (list, create, delete, update etc.) and should be used by some behaviors like MasterDetailRelationBehavior instead of creating a generic handler.
Value { get; } Gets a value indicating whether the handler is marked as default.

Remarks

Initializes a new instance of the attribute.

See Also