ShouldSerializeResult 枚举

定义

定义由 XamlMemberInvoker 报告的序列化行为。Defines serialization behavior as reported by a XamlMemberInvoker.

public enum class ShouldSerializeResult
public enum ShouldSerializeResult
type ShouldSerializeResult = 
Public Enum ShouldSerializeResult
继承
ShouldSerializeResult

字段

Default 0

未知,将遵从成员的类型。Unknown, defer to the type of the member.

False 2

不对结果进行序列化。Do not serialize the result.

True 1

对结果进行序列化。Serialize the result.

注解

这适用于调用程序的专用序列化支持。This is for specialized serialization support by invokers. 更常规的序列化支持不应要求此枚举。More general serialization support should not require this enumeration. ShouldSerialize此外, 还可以将信息提供给 XAML 编写器, 作为默认 XAML 架构上下文和 CLR 反射的一部分。ShouldSerialize information is otherwise available to XAML writers as part of the default XAML schema context and CLR reflection.

适用于

另请参阅