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

属性值

适用于