BeginTransactionInterceptionContext.WithIsolationLevel(IsolationLevel) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立新的 BeginTransactionInterceptionContext ,其中包含這個攔截內容中的所有內容資訊,以及指定的 IsolationLevel 。
public System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext WithIsolationLevel (System.Data.IsolationLevel isolationLevel);
member this.WithIsolationLevel : System.Data.IsolationLevel -> System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext
參數
- isolationLevel
- IsolationLevel
要關聯的隔離等級。
傳回
與指定隔離等級相關聯的新攔截內容。