Returns an object that represents a service provided by the
System.ComponentModel.Component or by its
Container.
'Declaration
Protected Overridable Function GetService( _
ByVal As Type _
) As Object
'Usage
Dim instance As CellViewerManager
Dim service As Type
Dim value As Object
value = instance.GetService(service)
protected virtual object GetService(
Type
)
Parameters
- service
- A service provided by the System.ComponentModel.Component.
Return Value
An Object that represents a service provided by the Component.
This value is a null reference (Nothing in Visual Basic) if the Component does not provide the specified service.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2