FrameworkElement.ShouldSerializeResources 方法

定義

傳回序列化 (Serialization) 處理序是否應該將 Resources 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Resources property.

public:
 bool ShouldSerializeResources();
public bool ShouldSerializeResources ();
member this.ShouldSerializeResources : unit -> bool
Public Function ShouldSerializeResources () As Boolean

傳回

Boolean

如果應序列化 Resources 屬性值,則為 true,否則為 falsetrue if the Resources property value should be serialized; otherwise, false.

備註

true只要本機中至少有一個索引鍵資源,就會傳回此值 ResourcesThis will return true as long as there is at least one keyed resource in the local Resources.

適用於