DataColumn.Namespace 屬性

定義

取得或設定 DataColumn 的命名空間。

public:
 property System::String ^ Namespace { System::String ^ get(); void set(System::String ^ value); };
public string Namespace { get; set; }
[System.Data.DataSysDescription("DataColumnNamespaceDescr")]
public string Namespace { get; set; }
member this.Namespace : string with get, set
[<System.Data.DataSysDescription("DataColumnNamespaceDescr")>]
member this.Namespace : string with get, set
Public Property Namespace As String

屬性值

DataColumn 的命名空間。

屬性

例外狀況

命名空間已經有資料。

備註

使用、 WriteXmlReadXmlSchemaWriteXmlSchema 方法在 中DataSet讀取和寫入 XML 檔時DataTable,會Namespace使用 ReadXml屬性。

XML 檔案的命名空間是用來在讀取至 DataSet時設定 XML 屬性和元素的範圍。 例如, DataSet 包含從命名空間為 「myCompany」 的檔案讀取架構,而且嘗試從命名空間為 「theirCompany」 的檔案讀取資料 (ReadXml 方法) 。任何未對應至現有架構的數據都會被忽略。

適用於

另請參閱