Skip to main content
All docs
V25.1
  • PropertyAllowEventArgs.Allow Property

    Gets or sets whether to allow property serialization or deserialization.

    Namespace: DevExpress.Utils

    Assembly: DevExpress.Data.v25.1.dll

    NuGet Package: DevExpress.Data

    Declaration

    public DefaultBoolean Allow { get; set; }

    Property Value

    Type Description
    DefaultBoolean

    True, Default to allow property serialization or deserialization; otherwise, False.

    Available values:

    Name Description Return Value
    True

    The value is true.

    0

    False

    The value is false.

    1

    Default

    The value is specified by a global option or a higher-level object.

    2

    Remarks

    Use the Allow option to allow or disallow property serialization or deserialization. The PropertyName property identify which property/setting is currently being processed.

    Example

    The following example demonstrates how to avoid serializing certain settings:

    treeList.PropertySerializing += (s, e) => {
        if(e.Owner is TreeListColumn && e.PropertyName == "Caption")
            e.Allow = DefaultBoolean.False;
    };
    
    See Also