편집

다음을 통해 공유


DependencyObject.ShouldSerializeProperty(DependencyProperty) Method

Definition

Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

protected public:
 virtual bool ShouldSerializeProperty(System::Windows::DependencyProperty ^ dp);
protected internal virtual bool ShouldSerializeProperty (System.Windows.DependencyProperty dp);
abstract member ShouldSerializeProperty : System.Windows.DependencyProperty -> bool
override this.ShouldSerializeProperty : System.Windows.DependencyProperty -> bool
Protected Friend Overridable Function ShouldSerializeProperty (dp As DependencyProperty) As Boolean

Parameters

dp
DependencyProperty

The identifier for the dependency property that should be serialized.

Returns

true if the dependency property that is supplied should be value-serialized; otherwise, false.

Remarks

The default implementation returns true for all cases in which a dependency property had a local value established on the DependencyObject.

Notes to Inheritors

Overrides for this method might handle specific dependency properties differently.

Applies to