Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Component.GetService Method (Type)


Returns an object that represents a service provided by the Component or by its Container.

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

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


Type: System.Type

A service provided by the Component.

Return Value

Type: System.Object

An Object that represents a service provided by the Component, or null if the Component does not provide the specified service.

This method can be overridden by a derived class.

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft