SqlScriptEditorControl.CreateInstance 方法

定义

创建 SqlScriptEditorControl 的实例。

重载

CreateInstance(Object, Boolean, Boolean)

创建 SqlScriptEditorControl 类的实例。

CreateInstance(Object, Boolean, String)

创建 SqlScriptEditorControl 类的新实例。

CreateInstance(Object, Boolean, Boolean)

创建 SqlScriptEditorControl 类的实例。

public:
 static Microsoft::SqlServer::Management::UI::VSIntegration::Editors::SqlScriptEditorControl ^ CreateInstance(System::Object ^ serviceProvider, bool withEncoding, bool isSqlObjectDocument);
public static Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl CreateInstance (object serviceProvider, bool withEncoding, bool isSqlObjectDocument);
static member CreateInstance : obj * bool * bool -> Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl
Public Shared Function CreateInstance (serviceProvider As Object, withEncoding As Boolean, isSqlObjectDocument As Boolean) As SqlScriptEditorControl

参数

serviceProvider
Object

Visual Studio 框架的 Object Visual Studio 服务提供程序。

withEncoding
Boolean

一个布尔值,如果编辑器具有编码,则为 True

isSqlObjectDocument
Boolean

一个布尔值,如果是 SQL 对象文档,则为 True

返回

一个已初始化的 SqlScriptEditorControl 对象。

适用于

CreateInstance(Object, Boolean, String)

创建 SqlScriptEditorControl 类的新实例。

public:
 static Microsoft::SqlServer::Management::UI::VSIntegration::Editors::SqlScriptEditorControl ^ CreateInstance(System::Object ^ serviceProvider, bool withEncoding, System::String ^ moniker);
public static Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl CreateInstance (object serviceProvider, bool withEncoding, string moniker);
static member CreateInstance : obj * bool * string -> Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl
Public Shared Function CreateInstance (serviceProvider As Object, withEncoding As Boolean, moniker As String) As SqlScriptEditorControl

参数

serviceProvider
Object

Visual Studio 框架的 Object Visual Studio 服务提供程序。

withEncoding
Boolean

一个布尔值,如果编辑器具有编码,则为 True

moniker
String

一个包含文档名字对象的字符串值。

返回

一个已初始化的 SqlScriptEditorControl 对象。

适用于