This documentation is archived and is not being maintained.

CollectionEditor.GetService Method

Gets the requested service, if it is available.

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

Parameters

serviceType
The type of service to retrieve.

Return Value

An instance of the service, or a null reference (Nothing in Visual Basic) if the service cannot be found.

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

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

Show: