GetService Method
Collapse the table of content
Expand the table of content

DesignSurfaceManager.GetService Method (Type)

 

Gets a service in the design surface manager’s service container.

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

public object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The service type to retrieve.

Return Value

Type: System.Object

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

The GetService method forwards to any service provider that was given to the design surface manager at construction time.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft