ClassPropertyNameMetadata
Represents a serialization metadata for property names and paths.
Definition
Namespace:Telerik.Windows.Persistence.SerializationMetadata
Assembly:Telerik.Windows.PersistenceFramework.dll
Syntax:
public class PropertyNameMetadata : ISerializationMetadata
Inheritance: objectPropertyNameMetadata
Implements:
Constructors
PropertyNameMetadata()
Declaration
public PropertyNameMetadata()
Properties
Condition
Gets or sets a value indicating whether this property is included or excluded from the serialization.
Declaration
public SerializationMetadataCondition Condition { get; set; }
Property Value
SerializationMetadataCondition
The condition.
Expression
Gets or sets the expression that will be used as a base for a Regex that will match properties based on the SearchType.
IsRecursive
Gets or sets a value indicating whether this instance is recursive.
Declaration
public bool IsRecursive { get; set; }
Property Value
True if this instance is recursive; otherwise, false.
SearchType
Gets or sets a value indicating whether the search is based on the property name or a property path.
Declaration
public MetadataSearchCriteria SearchType { get; set; }
Property Value
The type of the search.
Methods
ShouldSerialize(PropertyInfo, string)
Determines whether a property should be serialized based on the current settings.
Declaration
public MatchResult ShouldSerialize(PropertyInfo property, string propertyPath)
Parameters
property
The property to evaluate.
propertyPath
The property path to evaluate.
Returns
Implements