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 設定不適用於集合項目。

適用於

另請參閱