This documentation is archived and is not being maintained.

NestedContainer.GetService Method

Gets the service object of the specified type, if it is available.

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

protected override Object GetService (
	Type service
protected Object GetService (
	Type service
protected override function GetService (
	service : Type
) : Object
Not applicable.



The Type of the service to retrieve.

Return Value

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

This method overrides the Container.GetService method. This implementation only resolves requests for the INestedContainer and IContainer services.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0