ISqlServerObjectExplorerService.Add Method
Creates a new connected editor window populated with the new object template for the given object type.
Namespace: Microsoft.VisualStudio.Data.Tools
Assembly: Microsoft.VisualStudio.Data.Tools.Design (in Microsoft.VisualStudio.Data.Tools.Design.dll)
Syntax
'Declaration
Sub Add ( _
connection As SqlConnectionStringBuilder, _
objectType As SqlServerObjectType _
)
'Usage
Dim instance As ISqlServerObjectExplorerService
Dim connection As SqlConnectionStringBuilder
Dim objectType As SqlServerObjectType
instance.Add(connection, objectType)
void Add(
SqlConnectionStringBuilder connection,
SqlServerObjectType objectType
)
void Add(
SqlConnectionStringBuilder^ connection,
SqlServerObjectType objectType
)
abstract Add :
connection:SqlConnectionStringBuilder *
objectType:SqlServerObjectType -> unit
function Add(
connection : SqlConnectionStringBuilder,
objectType : SqlServerObjectType
)
Parameters
- connection
Type: System.Data.SqlClient.SqlConnectionStringBuilder
The connection information for the new editor window.
- objectType
Type: Microsoft.VisualStudio.Data.Tools.SqlServerObjectType
The type of object.
Exceptions
| Exception | Condition |
|---|---|
| NotSupportedException | If the objectType is not supported. |
| ArgumentNullException | If any argument is null. |
| FileNotFoundException | If there was a problem finding the item template for the object type. |
| InvalidOperationException | If there was a problem opening up the editor or designer for the new item template. |