DataServiceContext.DataNamespace 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 Atom 有效載荷資料項目的 XML 命名空間,而非元資料項目。
public:
property System::String ^ DataNamespace { System::String ^ get(); void set(System::String ^ value); };
public string DataNamespace { get; set; }
member this.DataNamespace : string with get, set
Public Property DataNamespace As String
屬性值
一個字串,代表 ATOM 格式中有效載荷資料項目的 XML 命名空間。
備註
此屬性的預設值為 WCF Data Services 的預設命名空間: http://schemas.microsoft.com/ado/2007/08/dataservices。
此特性影響用於解析資料服務內容的命名空間,以及用於產生傳送至資料服務內容的命名空間。