ISqlServerObjectExplorerService.Add Method (SqlConnectionStringBuilder, SqlServerObjectType)
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
void Add(
SqlConnectionStringBuilder connection,
SqlServerObjectType objectType
)
void Add(
SqlConnectionStringBuilder^ connection,
SqlServerObjectType objectType
)
abstract Add :
connection:SqlConnectionStringBuilder *
objectType:SqlServerObjectType -> unit
Sub Add (
connection As SqlConnectionStringBuilder,
objectType As SqlServerObjectType
)
Parameters
connection
Type: System.Data.SqlClient.SqlConnectionStringBuilderThe connection information for the new editor window.
objectType
Type: Microsoft.VisualStudio.Data.Tools.SqlServerObjectTypeThe 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. |
See Also
ISqlServerObjectExplorerService Interface
Microsoft.VisualStudio.Data.Tools Namespace
Return to top