Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a new service object based on the specified interface service type.
Namespace:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Protected Overrides Function CreateService ( _
    container As IServiceContainer, _
    serviceType As Type _
) As Object
protected override Object CreateService(
    IServiceContainer container,
    Type serviceType
)
protected:
virtual Object^ CreateService(
    IServiceContainer^ container, 
    Type^ serviceType
) override
abstract CreateService : 
        container:IServiceContainer * 
        serviceType:Type -> Object  
override CreateService : 
        container:IServiceContainer * 
        serviceType:Type -> Object
protected override function CreateService(
    container : IServiceContainer, 
    serviceType : Type
) : Object
Parameters
- container 
 Type: System.ComponentModel.Design.IServiceContainer- A service provider object to contain the service. 
- serviceType 
 Type: System.Type- A Type of the service to create. 
Return Value
Type: System.Object
The service object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.