ComponentDesigner.GetService Method (Type)


Attempts to retrieve the specified type of service from the design mode site of the designer's component.

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

abstract GetService : 
        serviceType:Type -> Object
override GetService : 
        serviceType:Type -> Object


Type: System.Type

The type of service to request.

Return Value

Type: System.Object

An object implementing the requested service, or null if the service cannot be resolved.

The default implementation of this method requests the service from the site of the component.

The following code example demonstrates the use of the GetService method to access designer services.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top