SQLWorkbenchPackage.AddService 方法

定义

重载

AddService(Type, ServiceCreatorCallback)
AddService(Type, Object)
AddService(Type, ServiceCreatorCallback, Boolean)
AddService(Type, Object, Boolean)

AddService(Type, ServiceCreatorCallback)

public:
 virtual void AddService(Type ^ serviceType, System::ComponentModel::Design::ServiceCreatorCallback ^ callback);
public void AddService (Type serviceType, System.ComponentModel.Design.ServiceCreatorCallback callback);
abstract member AddService : Type * System.ComponentModel.Design.ServiceCreatorCallback -> unit
override this.AddService : Type * System.ComponentModel.Design.ServiceCreatorCallback -> unit
Public Sub AddService (serviceType As Type, callback As ServiceCreatorCallback)

参数

serviceType
Type

实现

适用于

AddService(Type, Object)

public:
 virtual void AddService(Type ^ serviceType, System::Object ^ serviceInstance);
public void AddService (Type serviceType, object serviceInstance);
abstract member AddService : Type * obj -> unit
override this.AddService : Type * obj -> unit
Public Sub AddService (serviceType As Type, serviceInstance As Object)

参数

serviceType
Type
serviceInstance
Object

实现

适用于

AddService(Type, ServiceCreatorCallback, Boolean)

public:
 virtual void AddService(Type ^ serviceType, System::ComponentModel::Design::ServiceCreatorCallback ^ callback, bool promote);
public void AddService (Type serviceType, System.ComponentModel.Design.ServiceCreatorCallback callback, bool promote);
abstract member AddService : Type * System.ComponentModel.Design.ServiceCreatorCallback * bool -> unit
override this.AddService : Type * System.ComponentModel.Design.ServiceCreatorCallback * bool -> unit
Public Sub AddService (serviceType As Type, callback As ServiceCreatorCallback, promote As Boolean)

参数

serviceType
Type
promote
Boolean

实现

适用于

AddService(Type, Object, Boolean)

public:
 virtual void AddService(Type ^ serviceType, System::Object ^ serviceInstance, bool promote);
public void AddService (Type serviceType, object serviceInstance, bool promote);
abstract member AddService : Type * obj * bool -> unit
override this.AddService : Type * obj * bool -> unit
Public Sub AddService (serviceType As Type, serviceInstance As Object, promote As Boolean)

参数

serviceType
Type
serviceInstance
Object
promote
Boolean

实现

适用于