共用方式為


WebApplication.Lifetime 屬性

定義

允許消費者收到應用程式存留期事件的通知。

public Microsoft.Extensions.Hosting.IHostApplicationLifetime Lifetime { get; }
member this.Lifetime : Microsoft.Extensions.Hosting.IHostApplicationLifetime
Public ReadOnly Property Lifetime As IHostApplicationLifetime

屬性值

適用於