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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應