FrameworkElement.ShouldSerializeResources FrameworkElement.ShouldSerializeResources FrameworkElement.ShouldSerializeResources FrameworkElement.ShouldSerializeResources Method

定義

傳回序列化 (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

傳回

如果應序列化 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.

適用於