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

KeywordNotSupported() static private méthode

static private KeywordNotSupported ( string keyword ) : ArgumentException
keyword string
Résultat System.ArgumentException
        static internal ArgumentException KeywordNotSupported(string keyword)
        {
            return Argument(Res.GetString(Res.ADP_KeywordNotSupported, keyword));
        }
        static internal ArgumentException InvalidMinMaxPoolSizeValues()

Usage Example

        private static string[] ParseRestrictions(string restrictions, Dictionary <string, string> synonyms)
        {
            List <string> restrictionValues = new List <string>();
            StringBuilder buffer            = new StringBuilder(restrictions.Length);

            int nextStartPosition = 0;
            int endPosition       = restrictions.Length;

            while (nextStartPosition < endPosition)
            {
                int startPosition = nextStartPosition;

                string keyname, keyvalue; // since parsing restrictions ignores values, it doesn't matter if we use ODBC rules or OLEDB rules
                nextStartPosition = DbConnectionOptions.GetKeyValuePair(restrictions, startPosition, buffer, false, out keyname, out keyvalue);
                if (!string.IsNullOrEmpty(keyname))
                {
                    string realkeyname = ((null != synonyms) ? (string)synonyms[keyname] : keyname); // MDAC 85144
                    if (string.IsNullOrEmpty(realkeyname))
                    {
                        throw ADP.KeywordNotSupported(keyname);
                    }
                    restrictionValues.Add(realkeyname);
                }
            }
            return(RemoveDuplicates(restrictionValues.ToArray()));
        }
All Usage Examples Of System.Data.Common.ADP::KeywordNotSupported
ADP