語言

AsyncServiceScope(IServiceScope) 建構函式

定義

初始化一個新的結構體實例 AsyncServiceScope 。 包裹一個 的 IServiceScope實例。

public:
 AsyncServiceScope(Microsoft::Extensions::DependencyInjection::IServiceScope ^ serviceScope);
public AsyncServiceScope(Microsoft.Extensions.DependencyInjection.IServiceScope serviceScope);
new Microsoft.Extensions.DependencyInjection.AsyncServiceScope : Microsoft.Extensions.DependencyInjection.IServiceScope -> Microsoft.Extensions.DependencyInjection.AsyncServiceScope
Public Sub New (serviceScope As IServiceScope)

參數

serviceScope
IServiceScope

IServiceScope要收回的實例。

適用於