Class
PropertyNameMetadata

Represents a serialization metadata for property names and paths.

Definition

Namespace:Telerik.Windows.Persistence.SerializationMetadata

Assembly:Telerik.Windows.PersistenceFramework.dll

Syntax:

cs-api-definition
public class PropertyNameMetadata : ISerializationMetadata

Inheritance: objectPropertyNameMetadata

Implements: ISerializationMetadata

Constructors

PropertyNameMetadata()

Declaration

cs-api-definition
public PropertyNameMetadata()

Properties

Condition

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

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public string Expression { get; set; }

Property Value

string

IsRecursive

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

Declaration

cs-api-definition
public bool IsRecursive { get; set; }

Property Value

bool

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

cs-api-definition
public MetadataSearchCriteria SearchType { get; set; }

Property Value

MetadataSearchCriteria

The type of the search.

Methods

ShouldSerialize(PropertyInfo, string)

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

Declaration

cs-api-definition
public MatchResult ShouldSerialize(PropertyInfo property, string propertyPath)

Parameters

property

PropertyInfo

The property to evaluate.

propertyPath

string

The property path to evaluate.

Returns

MatchResult

Implements ISerializationMetadata.ShouldSerialize(PropertyInfo, string)