Freigeben über


TeamFoundationDataTierComponent.CheckIfDatabaseExists Method

Checks if the specified database exists.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function CheckIfDatabaseExists ( _
    databaseName As String _
) As Boolean
public bool CheckIfDatabaseExists(
    string databaseName
)
public:
bool CheckIfDatabaseExists(
    String^ databaseName
)
member CheckIfDatabaseExists : 
        databaseName:string -> bool
public function CheckIfDatabaseExists(
    databaseName : String
) : boolean

Parameters

  • databaseName
    Type: System.String

    The name of the database to check.

Return Value

Type: System.Boolean

Remarks

On Sql Azure this method can only be called if component is connected to the master database.

.NET Framework Security

See Also

Reference

TeamFoundationDataTierComponent Class

Microsoft.TeamFoundation.Framework.Server Namespace