ערוך

שתף באמצעות


ServiceContainer Constructors

Definition

Initializes a new instance of the ServiceContainer class.

Overloads

ServiceContainer()

Initializes a new instance of the ServiceContainer class.

ServiceContainer(IServiceProvider)

Initializes a new instance of the ServiceContainer class using the specified parent service provider.

ServiceContainer()

Source:
ServiceContainer.cs
Source:
ServiceContainer.cs
Source:
ServiceContainer.cs

Initializes a new instance of the ServiceContainer class.

public:
 ServiceContainer();
public ServiceContainer ();
Public Sub New ()

Applies to

ServiceContainer(IServiceProvider)

Source:
ServiceContainer.cs
Source:
ServiceContainer.cs
Source:
ServiceContainer.cs

Initializes a new instance of the ServiceContainer class using the specified parent service provider.

public:
 ServiceContainer(IServiceProvider ^ parentProvider);
public ServiceContainer (IServiceProvider parentProvider);
public ServiceContainer (IServiceProvider? parentProvider);
new System.ComponentModel.Design.ServiceContainer : IServiceProvider -> System.ComponentModel.Design.ServiceContainer
Public Sub New (parentProvider As IServiceProvider)

Parameters

parentProvider
IServiceProvider

A parent service provider.

Remarks

The service container uses this service object provider to retrieve services, if they are not available locally in the container.

Applies to