Returns an object that represents a service provided by the Component or by its Container.
[Visual Basic] Protected Overridable Function GetService( _ ByVal service As Type _ ) As Object [C#] protected virtual object GetService( Type service ); [C++] protected: virtual Object* GetService( Type* service ); [JScript] protected function GetService( service : Type ) : Object;
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.
This method can be overridden by a derived class.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Component Class | Component Members | System.ComponentModel Namespace | IContainer | Container | ISite | IServiceProvider