Skip to content

IgnoreUIFieldAttribute class

namespace: Serenity.ComponentModel   assembly: Serenity.Net.Core

Skips a property while generating a grid column, form field, or report form parameter list. Use this to ignore a property for UI, but still use it for other purposes like JSON serialization. This might be useful for example when a type is used as a Service Request and Form Declaration at the same time. Unlike TransformIgnoreAttribute, this will generate the property in request types, but skip it in UI generation.

It can also be placed on the members of a StringEnum, like TransformIgnoreAttribute, to keep them out of the generated type on the client. Such members are still valid values on the server.

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class IgnoreUIFieldAttribute : Attribute

Public Members

name description
IgnoreUIFieldAttribute() The default constructor.

See Also