語言

IServiceScope 介面

定義

定義一次性服務範圍。

public interface class IServiceScope : IDisposable
public interface IServiceScope : IDisposable
type IServiceScope = interface
    interface IDisposable
Public Interface IServiceScope
Implements IDisposable
衍生
實作

備註

此 Dispose() 方法終止了示波器的壽命。 一旦處置通知,所有已解決的範圍服務及臨時服務 ServiceProvider 都會被處置。

屬性

名稱 Description
ServiceProvider

它會用 IServiceProvider 來解決作用波的相依性。

方法

名稱 Description
Dispose()

執行與釋放、釋放或重設非受控資源相關聯的應用程式定義工作。

(繼承來源 IDisposable)

適用於