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)