IServiceProvider Interface

May 11, 2014

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)

'Declaration
Public Interface IServiceProvider

The IServiceProvider type exposes the following members.

  NameDescription
Public methodGetServiceGets the service object of the specified type.
Top

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft