Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IServiceProvider Interface
Definition
- Namespace:
- System
- Assemblies:
- mscorlib.dll, System.ComponentModel.dll
- Assemblies:
- netstandard.dll, System.ComponentModel.dll
- Assembly:
- System.ComponentModel.dll
- Assembly:
- mscorlib.dll
- Assembly:
- netstandard.dll
- Source:
- IServiceProvider.cs
- Source:
- IServiceProvider.cs
- Source:
- CancelEventArgs.cs
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
public interface class IServiceProvider
public interface IServiceProvider
[System.Runtime.InteropServices.ComVisible(false)]
public interface IServiceProvider
type IServiceProvider = interface
[<System.Runtime.InteropServices.ComVisible(false)>]
type IServiceProvider = interface
Public Interface IServiceProvider
- Derived
- Attributes
Remarks
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.
The IServiceProvider interface is implemented by a number of types, including System.Web.HttpContext, System.ComponentModel.LicenseContext, System.ComponentModel.MarshalByValueComponent, and System.ComponentModel.Design.ServiceContainer.
Methods
| Name | Description |
|---|---|
| GetService(Type) |
Gets the service object of the specified type. |
Extension Methods
Applies to
See also
Feedback
Was this page helpful?
