IInterceptors.Aggregate<TInterceptor> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從所有註冊於DbContext內部服務提供者或服務提供者的帳戶中解決一個TInterceptor。
public TInterceptor? Aggregate<TInterceptor>() where TInterceptor : class, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;
public TInterceptor Aggregate<TInterceptor>() where TInterceptor : class, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;
abstract member Aggregate : unit -> 'Interceptor (requires 'Interceptor : null and 'Interceptor :> Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor)
Public Function Aggregate(Of TInterceptor As {Class, IInterceptor}) () As TInterceptor
類型參數
- TInterceptor
攔截機類型需要解決。
傳回
TInterceptor
已解析攔截機,若 null 沒有偵測到攔截器。