DataServiceContext.DataNamespace 屬性

定義

取得或設定 Atom 承載之資料項目 (而非中繼資料項目) 的 XML 命名空間 (Namespace)。

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

屬性值

String

字串,表示承載 (格式為 ATOM) 之資料項目的 XML 命名空間。

備註

此屬性的預設值是預設WCF Data Services命名空間: http://schemas.microsoft.com/ado/2007/08/dataservices

此屬性會影響剖析來自資料服務之內容時所用的命名空間以及產生傳送到資料服務之內容時所用的命名空間。

適用於