FrameworkContentElement.ShouldSerializeResources 方法

定義

傳回序列化 (Serialization) 處理序是否應該在這個類別的執行個體上,將 Resources 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Resources property on instances of this class.

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.

備註

只要本機 Resources中至少有一個金鑰資源,這就會傳回 trueThis will return true so long as there is at least one keyed resource in the local Resources.

適用於