Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
- 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.