DataContractAttribute.IsReference 属性
定义
获取或设置一个值,该值指示是否保留对象引用数据。Gets or sets a value that indicates whether to preserve object reference data.
public:
property bool IsReference { bool get(); void set(bool value); };
public bool IsReference { get; set; }
member this.IsReference : bool with get, set
Public Property IsReference As Boolean
属性值
如果使用标准 XML 保留对象引用数据,则为 true;否则为 false。true to keep object reference data using standard XML; otherwise, false. 默认值为 false。The default is false.
注解
使用 IsReference 属性来指示 DataContractSerializer 插入保留对象引用信息的 XML 构造。Use the IsReference property to instruct the DataContractSerializer to insert XML constructs that preserve object reference information.