DependencyObject.ShouldSerializeProperty(DependencyProperty) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om