The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

HiddenAttribute Class

Applied to XPO persistent classes, their fields or properties. Specifies that the target class, property or field should be hidden when generating OData Service metadata.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.Extensions.dll


[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field, Inherited = true)]
public class HiddenAttribute :
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Property Or AttributeTargets.Field, Inherited:=True)>
Public Class HiddenAttribute
    Inherits Attribute


If you do not want to modify the target class source, you can override the HideProperty or HideResourceType method in the XpoContext descendant. Note that the HiddenAttributeattribute has a higher priority.


See Also