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

'宣言
Protected Overridable Function CreateService ( _
    serviceType As Type _
) As Object
'使用
Dim serviceType As Type
Dim returnValue As Object

returnValue = Me.CreateService(serviceType)
protected virtual Object CreateService(
    Type serviceType
)
protected:
virtual Object^ CreateService(
    Type^ serviceType
)
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 a 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.

Permissions

See Also

Reference

DataViewSupport Class

DataViewSupport Members

Microsoft.VisualStudio.Data.Framework Namespace