DesignSurface::GetService Method (Type^)

 

Gets a service from the service container.

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

public:
virtual Object^ GetService(
	Type^ serviceType
) sealed

Parameters

serviceType
Type: System::Type^

The type of service to retrieve.

Return Value

Type: System::Object^

An object that implements, or is a derived class of, serviceType, or null if the service does not exist in the service container.

The GetService method retrieves a service in the design surface’s service container. In addition, this will forward to any service provider that was given to the design surface at construction time.

.NET Framework
Available since 2.0
Return to top
Show: