Share via


DataConnectionSupport.CreateService Method

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

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Protected Overridable Function CreateService ( _
    container As IServiceContainer, _
    serviceType As Type _
) As Object
protected virtual Object CreateService(
    IServiceContainer container,
    Type serviceType
)
protected:
virtual Object^ CreateService(
    IServiceContainer^ container, 
    Type^ serviceType
)
abstract CreateService : 
        container:IServiceContainer * 
        serviceType:Type -> Object 
override CreateService : 
        container:IServiceContainer * 
        serviceType:Type -> Object 
protected function CreateService(
    container : IServiceContainer, 
    serviceType : Type
) : Object

Parameters

Return Value

Type: System.Object
A new service object for the specified type.

Remarks

Notes to Inheritors

The derived class should override this method.

.NET Framework Security

See Also

Reference

DataConnectionSupport Class

Microsoft.VisualStudio.Data.Framework Namespace