Export (0) Print
Expand All

Component::GetService Method

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

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

protected:
virtual Object^ GetService(
	Type^ service
)

Parameters

service
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 nullptr if the Component does not provide the specified service.

This method can be overridden by a derived class.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft