Freigeben über


ServiceDescriptor.Lifetime Eigenschaft

Definition

Ruft den ServiceLifetime des Diensts ab.

public:
 property Microsoft::Extensions::DependencyInjection::ServiceLifetime Lifetime { Microsoft::Extensions::DependencyInjection::ServiceLifetime get(); };
public Microsoft.Extensions.DependencyInjection.ServiceLifetime Lifetime { get; }
member this.Lifetime : Microsoft.Extensions.DependencyInjection.ServiceLifetime
Public ReadOnly Property Lifetime As ServiceLifetime

Eigenschaftswert

Gilt für: