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

定义

返回一个值,该值指示序列化过程是否应该序列化 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.

适用于