ComponentGetService Method
 

Returns an object that represents a service provided by the Component or by its Container.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

protected virtual object GetService(
	Type service
)
protected:
virtual Object^ GetService(
	Type^ service
)
abstract GetService : 
        service:Type -> Object
override GetService : 
        service:Type -> Object
Protected Overridable Function GetService (
	service As Type
) As Object

Parameters

service
Type:

A service provided by the Component.

Return Value

Type:

An Object that represents a service provided by the Component, or null if the Component does not provide the specified service.

This method can be overridden by a derived class.

.NET Framework
Available since 1.1
Return to top