DataContractAttribute.IsReference 屬性

定義

取得或設定值,這個值表示是否要保留物件參考資料。

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

屬性值

true用標準 XML 來保存物件參考資料;否則,。 false 預設值為 false

備註

利用該 IsReference 屬性指示 插入 DataContractSerializer 保留物件參考資訊的 XML 結構。

適用於

另請參閱