SQLWorkbenchPackage.AddService 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
- callback
- ServiceCreatorCallback
实现
适用于
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
- callback
- ServiceCreatorCallback
- 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