Freigeben über


XmlSchemaCollection Constructor (Database, String, String, String)

Initializes a new instance of the XmlSchemaCollection class on the specified database, with the specified name and schema, and with the specified XML schema document.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub New ( _
    database As Database, _
    name As String, _
    schema As String, _
    xmlSchemaDocument As String _
)
public XmlSchemaCollection (
    Database database,
    string name,
    string schema,
    string xmlSchemaDocument
)
public:
XmlSchemaCollection (
    Database^ database, 
    String^ name, 
    String^ schema, 
    String^ xmlSchemaDocument
)
public XmlSchemaCollection (
    Database database, 
    String name, 
    String schema, 
    String xmlSchemaDocument
)
public function XmlSchemaCollection (
    database : Database, 
    name : String, 
    schema : String, 
    xmlSchemaDocument : String
)

Parameter

  • database
    A Database object that specifies the database to which the XML schema collection belongs.
  • name
    A String value that specifies the name of the XML schema collection.
  • schema
    A String value that specifies the schema of the XML schema collection.
  • xmlSchemaDocument
    A String value that specifies the XML schema document.

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

How to: Create an XML Schema in Visual Basic .NET

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

XmlSchemaCollection Class
XmlSchemaCollection Members
Microsoft.SqlServer.Management.Smo Namespace

Andere Ressourcen

Using XML Schemas
Verwalten von XML-Schemaauflistungen auf dem Server
CREATE SCHEMA (Transact-SQL)