ContentControl.ShouldSerializeContent メソッド
定義
public:
virtual bool ShouldSerializeContent();
public virtual bool ShouldSerializeContent ();
abstract member ShouldSerializeContent : unit -> bool
override this.ShouldSerializeContent : unit -> bool
Public Overridable Function ShouldSerializeContent () As Boolean
戻り値
Content プロパティを永続化する必要がある場合は true
。それ以外の場合は false
。true
if the Content property should be persisted; otherwise, false
.
注釈
この ShouldSerialize
メソッドは、プロパティに Content 単純な既定値がないために用意されています。This ShouldSerialize
method is provided because the Content property does not have a simple default value. このメソッドは、プロパティが既定値から変更されたかどうかを示します。This method indicates whether the property has changed from its default value. のデザイナーを開発している場合、 ContentControl またはを組み込んだ独自のコントロールを開発している場合は、通常、このメソッドを呼び出し ContentControl ます。You typically invoke this method if you are either developing a designer for the ContentControl or developing your own control incorporating the ContentControl.