ServiceProvider Class
Definition
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.
The default IServiceProvider.
public ref class ServiceProvider sealed : IDisposable, IServiceProvider
public ref class ServiceProvider sealed : IAsyncDisposable, IDisposable, IServiceProvider
public ref class ServiceProvider sealed : IAsyncDisposable, IDisposable, IServiceProvider, Microsoft::Extensions::DependencyInjection::IKeyedServiceProvider
public sealed class ServiceProvider : IDisposable, IServiceProvider
public sealed class ServiceProvider : IAsyncDisposable, IDisposable, IServiceProvider
public sealed class ServiceProvider : IAsyncDisposable, IDisposable, IServiceProvider, Microsoft.Extensions.DependencyInjection.IKeyedServiceProvider
type ServiceProvider = class
interface IServiceProvider
interface IDisposable
type ServiceProvider = class
interface IServiceProvider
interface IDisposable
interface IAsyncDisposable
type ServiceProvider = class
interface IAsyncDisposable
interface IDisposable
interface IServiceProvider
type ServiceProvider = class
interface IServiceProvider
interface IKeyedServiceProvider
interface IDisposable
interface IAsyncDisposable
Public NotInheritable Class ServiceProvider
Implements IDisposable, IServiceProvider
Public NotInheritable Class ServiceProvider
Implements IAsyncDisposable, IDisposable, IServiceProvider
Public NotInheritable Class ServiceProvider
Implements IAsyncDisposable, IDisposable, IKeyedServiceProvider, IServiceProvider
- Inheritance
-
ServiceProvider
- Implements
Methods
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
DisposeAsync() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetKeyedService(Type, Object) |
Gets the service object of the specified type with the specified key. |
GetRequiredKeyedService(Type, Object) |
Gets the service object of the specified type. |
GetService(Type) |
Gets the service object of the specified type. |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
Applies to
Feedback
Submit and view feedback for