Delen via


DataViewSupport.CreateService Method

Creates a service for the specified type.

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

Syntax

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

Parameters

  • serviceType
    Type: System.Type

    The type of service object to create.

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

The serviceType parameter is nulla null reference (Nothing in Visual Basic).

Remarks

The base implementation of this method returns the current instance of the data view if it is the requested type.

.NET Framework Security

See Also

Reference

DataViewSupport Class

Microsoft.VisualStudio.Data.Framework Namespace