PropertyAllowEventArgs.Allow Property
In This Article
Gets or sets whether to allow property serialization or deserialization.
Namespace: DevExpress.Utils
Assembly: DevExpress.Data.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
public DefaultBoolean Allow { get; set; }
#Property Value
Type | Description |
---|---|
Default |
|
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
#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