System.Data.Common.ADP.InvalidIsolationLevel C# (CSharp) Méthode

InvalidIsolationLevel() static private méthode

static private InvalidIsolationLevel ( IsolationLevel value ) : ArgumentOutOfRangeException
value IsolationLevel
Résultat System.ArgumentOutOfRangeException
        static internal ArgumentOutOfRangeException InvalidIsolationLevel(IsolationLevel value)
        {
#if DEBUG
            switch (value)
            {
                case IsolationLevel.Unspecified:
                case IsolationLevel.Chaos:
                case IsolationLevel.ReadUncommitted:
                case IsolationLevel.ReadCommitted:
                case IsolationLevel.RepeatableRead:
                case IsolationLevel.Serializable:
                case IsolationLevel.Snapshot:
                    Debug.Fail("valid IsolationLevel " + value.ToString());
                    break;
            }
#endif
            return InvalidEnumerationValue(typeof(IsolationLevel), (int)value);
        }
ADP