ISqlServerObjectExplorerService.Delete Method (SqlConnectionStringBuilder, SqlServerObjectType, String[])

 

Deletes objects and dependent objects from a database. A confirmation dialog is presented.

Namespace:   Microsoft.VisualStudio.Data.Tools
Assembly:  Microsoft.VisualStudio.Data.Tools.Design (in Microsoft.VisualStudio.Data.Tools.Design.dll)

Syntax

void Delete(
    SqlConnectionStringBuilder connection,
    SqlServerObjectType objectType,
    params string[] name
)
void Delete(
    SqlConnectionStringBuilder^ connection,
    SqlServerObjectType objectType,
    ... array<String^>^ name
)
abstract Delete : 
        connection:SqlConnectionStringBuilder *
        objectType:SqlServerObjectType *
        [<ParamArrayAttribute>] name:string[] -> unit
Sub Delete (
    connection As SqlConnectionStringBuilder,
    objectType As SqlServerObjectType,
    ParamArray name As String()
)

Parameters

  • name
    Type: System.String[]

    The full name of the object in its individual parts.

Exceptions

Exception Condition
ArgumentNullException

If any argument is null.

ArgumentException

If objectSchema or objectName are empty or contain only white space.

NotSupportedException

If the objectType is not supported.

See Also

ISqlServerObjectExplorerService Interface
Microsoft.VisualStudio.Data.Tools Namespace

Return to top