Skip to main content
All docs
V24.1

PropertyAllowEventArgs.PropertyName Property

Gets the property name currently being processed.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public string PropertyName { get; }

Property Value

Type Description
String

The property name.

Remarks

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

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