CollectionDataContractAttribute.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以保存物件參考資料;否則,。 false 預設值為 false

備註

IsReference 設定不適用於集合中的元素。

適用於

另請參閱