DesignSurface::GetService Method (Type^)
.NET Framework (current version)
Gets a service from the service container.
Assembly: System.Design (in System.Design.dll)
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.
Implements
IServiceProvider::GetService(Type^)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
Available since 2.0
Show: