IServiceProvider Interface
Collapse the table of content
Expand the table of content

IServiceProvider Interface

Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.

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

public interface IServiceProvider

The IServiceProvider type exposes the following members.

Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetServiceGets the service object of the specified type.

This interface is implemented by a class or value type that provides a service to other objects.

The GetService method of this interface obtains the object that provides the service.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2015 Microsoft