共用方式為


ServiceDescriptor.Lifetime 屬性

定義

ServiceLifetime取得服務的 。

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

屬性值

適用於