共用方式為


XmlSchemaCollection.AddSchemaDocument 方法

Adds an XML schema document to the XML schema collection.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub AddSchemaDocument ( _
    xmlSchemaDocument As String _
)
'用途
Dim instance As XmlSchemaCollection 
Dim xmlSchemaDocument As String

instance.AddSchemaDocument(xmlSchemaDocument)
public void AddSchemaDocument(
    string xmlSchemaDocument
)
public:
void AddSchemaDocument(
    String^ xmlSchemaDocument
)
member AddSchemaDocument : 
        xmlSchemaDocument:string -> unit
public function AddSchemaDocument(
    xmlSchemaDocument : String
)

參數

範例

使用 XML 結構描述

請參閱

參考

XmlSchemaCollection 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

使用 XML 結構描述

XML 結構描述集合 (SQL Server)

CREATE SCHEMA (Transact-SQL)