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

InvalidCommandType() static private méthode

static private InvalidCommandType ( CommandType value ) : ArgumentOutOfRangeException
value CommandType
Résultat System.ArgumentOutOfRangeException
        static internal ArgumentOutOfRangeException InvalidCommandType(CommandType value)
        {
#if DEBUG
            switch (value)
            {
                case CommandType.Text:
                case CommandType.StoredProcedure:
                case CommandType.TableDirect:
                    Debug.Assert(false, "valid CommandType " + value.ToString());
                    break;
            }
#endif
            return InvalidEnumerationValue(typeof(CommandType), (int)value);
        }
ADP