IDatabaseFactory.Create Method (IServer, String, CollationInfo)
Creates an IMutableDatabase object that belongs to the specified IServer object and has the specified name.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function Create ( _
server As IServer, _
name As String, _
collationInfo As CollationInfo _
) As IMutableDatabase
'Usage
Dim instance As IDatabaseFactory
Dim server As IServer
Dim name As String
Dim collationInfo As CollationInfo
Dim returnValue As IMutableDatabase
returnValue = instance.Create(server, _
name, collationInfo)
IMutableDatabase Create(
IServer server,
string name,
CollationInfo collationInfo
)
IMutableDatabase^ Create(
IServer^ server,
String^ name,
CollationInfo^ collationInfo
)
abstract Create :
server:IServer *
name:string *
collationInfo:CollationInfo -> IMutableDatabase
function Create(
server : IServer,
name : String,
collationInfo : CollationInfo
) : IMutableDatabase
Parameters
- server
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IServer
The IServer object that is the parent of the database object.
- name
Type: System.String
The name of the database object.
- collationInfo
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.CollationInfo
The CollationInfo object that is used by the database object.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableDatabase
An IMutableDatabase object that belongs to the specified IServer object and has the specified name.