ISqlServerObjectExplorerService.ViewCode Method (SqlConnectionStringBuilder, SqlServerObjectType, String[])
Opens the CREATE statement for the object in a new connected editor.
Namespace: Microsoft.VisualStudio.Data.Tools
Assembly: Microsoft.VisualStudio.Data.Tools.Design (in Microsoft.VisualStudio.Data.Tools.Design.dll)
Syntax
void ViewCode(
SqlConnectionStringBuilder connection,
SqlServerObjectType objectType,
params string[] name
)
void ViewCode(
SqlConnectionStringBuilder^ connection,
SqlServerObjectType objectType,
... array<String^>^ name
)
abstract ViewCode :
connection:SqlConnectionStringBuilder *
objectType:SqlServerObjectType *
[<ParamArrayAttribute>] name:string[] -> unit
Sub ViewCode (
connection As SqlConnectionStringBuilder,
objectType As SqlServerObjectType,
ParamArray name As String()
)
Parameters
connection
Type: System.Data.SqlClient.SqlConnectionStringBuilderThe connection information for the data.
objectType
Type: Microsoft.VisualStudio.Data.Tools.SqlServerObjectTypeThe type of object.
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