This documentation is archived and is not being maintained.

ComponentDesigner.GetService Method

Attempts to retrieve the specified type of service from the designer's component's design mode site.

[Visual Basic]
Protected Overridable Function GetService( _
   ByVal serviceType As Type _
) As Object
[C#]
protected virtual object GetService(
 Type serviceType
);
[C++]
protected: virtual Object* GetService(
 Type* serviceType
);
[JScript]
protected function GetService(
   serviceType : Type
) : Object;

Parameters

serviceType
The type of service to request.

Return Value

An object implementing the requested service, or a null reference (Nothing in Visual Basic) if the service cannot be resolved.

Remarks

The default implementation of this method requests the service from the site of the component.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ComponentDesigner Class | ComponentDesigner Members | System.ComponentModel.Design Namespace

Show: