New to Telerik UI for WPFStart a free 30-day trial

Represents a serialization metadata for property names and paths.

Definition

Namespace:Telerik.Windows.Persistence.SerializationMetadata

Assembly:Telerik.Windows.PersistenceFramework.dll

Syntax:

C#
public class PropertyNameMetadata : ISerializationMetadata

Inheritance: objectPropertyNameMetadata

Implements: ISerializationMetadata

Constructors

C#
public PropertyNameMetadata()

Properties

Gets or sets a value indicating whether this property is included or excluded from the serialization.

C#
public SerializationMetadataCondition Condition { get; set; }
Property Value:

The condition.

Gets or sets the expression that will be used as a base for a Regex that will match properties based on the SearchType.

C#
public string Expression { get; set; }

Gets or sets a value indicating whether this instance is recursive.

C#
public bool IsRecursive { get; set; }
Property Value:

True if this instance is recursive; otherwise, false.

Gets or sets a value indicating whether the search is based on the property name or a property path.

C#
public MetadataSearchCriteria SearchType { get; set; }
Property Value:

The type of the search.

Methods

Determines whether a property should be serialized based on the current settings.

C#
public MatchResult ShouldSerialize(PropertyInfo property, string propertyPath)
Parameters:propertyPropertyInfo

The property to evaluate.

propertyPathstring

The property path to evaluate.

Returns:

MatchResult

Implements: ISerializationMetadata.ShouldSerialize(PropertyInfo, string)