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

InvalidMultipartNameToManyParts() static private méthode

static private InvalidMultipartNameToManyParts ( string property, string value, int limit ) : ArgumentException
property string
value string
limit int
Résultat System.ArgumentException
        static internal ArgumentException InvalidMultipartNameToManyParts(string property, string value, int limit)
        {
            ArgumentException e = new ArgumentException(Res.GetString(Res.ADP_InvalidMultipartNameToManyParts, Res.GetString(property), value, limit));
            return e;
        }

Usage Example

        /* Core function  for parsing the multipart identifier string.
         * paramaters: name - string to parse
         * leftquote:  set of characters which are valid quoteing characters to initiate a quote
         * rightquote: set of characters which are valid to stop a quote, array index's correspond to the leftquote array.
         * separator:  separator to use
         * limit:      number of names to parse out
         * removequote:to remove the quotes on the returned string
         */
        private static void IncrementStringCount(string name, string[] ary, ref int position, string property)
        {
            ++position;
            int limit = ary.Length;

            if (position >= limit)
            {
                throw ADP.InvalidMultipartNameToManyParts(property, name, limit);
            }
            ary[position] = string.Empty;
        }
All Usage Examples Of System.Data.Common.ADP::InvalidMultipartNameToManyParts
ADP