TeamFoundationDatabaseManagementService.CreateDatabase Method
Creates a physical database on the specified data tier with specified collation. If collation is null or emptry string, server's default collation will be used.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function CreateDatabase ( _
deploymentRequestContext As TeamFoundationRequestContext, _
databaseName As String, _
collation As String, _
poolName As String, _
dataTierConnectionString As String, _
databaseType As TeamFoundationDatabaseType, _
logger As ITFLogger _
) As TeamFoundationDatabaseProperties
public TeamFoundationDatabaseProperties CreateDatabase(
TeamFoundationRequestContext deploymentRequestContext,
string databaseName,
string collation,
string poolName,
string dataTierConnectionString,
TeamFoundationDatabaseType databaseType,
ITFLogger logger
)
public:
TeamFoundationDatabaseProperties^ CreateDatabase(
TeamFoundationRequestContext^ deploymentRequestContext,
String^ databaseName,
String^ collation,
String^ poolName,
String^ dataTierConnectionString,
TeamFoundationDatabaseType databaseType,
ITFLogger^ logger
)
member CreateDatabase :
deploymentRequestContext:TeamFoundationRequestContext *
databaseName:string *
collation:string *
poolName:string *
dataTierConnectionString:string *
databaseType:TeamFoundationDatabaseType *
logger:ITFLogger -> TeamFoundationDatabaseProperties
public function CreateDatabase(
deploymentRequestContext : TeamFoundationRequestContext,
databaseName : String,
collation : String,
poolName : String,
dataTierConnectionString : String,
databaseType : TeamFoundationDatabaseType,
logger : ITFLogger
) : TeamFoundationDatabaseProperties
Parameters
deploymentRequestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextDeployment request context.
databaseName
Type: System.StringName of the database.
collation
Type: System.StringDatabase collation.
poolName
Type: System.StringConnection string to the SQL Server/SQL Azure on which the database must be created.
- dataTierConnectionString
Type: System.String
- databaseType
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseType
- logger
Type: Microsoft.TeamFoundation.Common.ITFLogger
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseProperties
TeamFoundationDatabaseProperties for the created database.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.