MarshalByValueComponent.GetService Method (Type)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the implementer of the IServiceProvider.

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

public virtual object GetService(
	Type service


Type: System.Type

A Type that represents the type of service you want.

Return Value

Type: System.Object

An Object that represents the implementer of the IServiceProvider.

For more information on designer services you can use, see Design-Time Architecture.

.NET Framework
Available since 1.1
Return to top