Partager via


DataConnectionSupport.CreateService(IServiceContainer, Type) Method

Definition

Creates a new service object, specifying the interface service type.

protected:
 virtual System::Object ^ CreateService(System::ComponentModel::Design::IServiceContainer ^ container, Type ^ serviceType);
protected virtual object CreateService (System.ComponentModel.Design.IServiceContainer container, Type serviceType);
abstract member CreateService : System.ComponentModel.Design.IServiceContainer * Type -> obj
override this.CreateService : System.ComponentModel.Design.IServiceContainer * Type -> obj
Protected Overridable Function CreateService (container As IServiceContainer, serviceType As Type) As Object

Parameters

container
IServiceContainer

A service provider object to contain the service.

serviceType
Type

The Type of the service to create.

Returns

A new service object for the specified type.

Applies to