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 Resources中至少有一個金鑰資源, 這就會傳回。This will return true as long as there is at least one keyed resource in the local Resources.

適用於