/// <summary> /// Sets the connection properties of the feature source /// </summary> /// <param name="fs"></param> /// <param name="values"></param> public static void ApplyConnectionProperties(this IFeatureSource fs, NameValueCollection values) { Check.NotNull(fs, "fs"); //NOXLATE Check.NotNull(values, "values"); //NOXLATE fs.ClearConnectionProperties(); foreach (string name in values.Keys) { string value = values[name]; fs.SetConnectionProperty(name, value); } }
/// <summary> /// Sets the connection properties of the feature source /// </summary> /// <param name="fs"></param> /// <param name="values"></param> public static void ApplyConnectionProperties(this IFeatureSource fs, NameValueCollection values) { Check.ArgumentNotNull(fs, nameof(fs)); Check.ArgumentNotNull(values, nameof(values)); fs.ClearConnectionProperties(); foreach (string name in values.Keys) { string value = values[name]; fs.SetConnectionProperty(name, value); } }