Bagikan melalui


ServiceCharacteristics(ServiceLifetime, Boolean) Konstruktor

Definisi

Membuat struct baru ServiceCharacteristics .

public ServiceCharacteristics (Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime, bool multipleRegistrations = false);
new Microsoft.EntityFrameworkCore.Infrastructure.ServiceCharacteristics : Microsoft.Extensions.DependencyInjection.ServiceLifetime * bool -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCharacteristics
Public Sub New (lifetime As ServiceLifetime, Optional multipleRegistrations As Boolean = false)

Parameter

lifetime
ServiceLifetime

Masa pakai layanan.

multipleRegistrations
Boolean

true jika beberapa pendaftaran layanan diizinkan; false Sebaliknya.

Berlaku untuk