/// <summary> /// <para>Adds an <see cref="AuthorizationRuleData"/> into the collection.</para> /// </summary> /// <param name="providerData"> /// <para>The <see cref="AuthorizationRuleData"/> to add. The value can not be a <see langword="null"/> reference (Nothing in Visual Basic).</para> /// </param> /// <remarks> /// <para>If a reference already exists in the collection by <seealso cref="AuthorizationRuleData.Name"/>, it will be replaced with the new reference.</para> /// </remarks> /// <exception cref="ArgumentNullException"> /// <para><paramref name="providerData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para> /// <para>- or -</para> /// <para><seealso cref="AuthorizationRuleData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para> /// </exception> public void Add(AuthorizationRuleData providerData) { if (providerData == null) { throw new ArgumentNullException("providerData"); } if (providerData.Name == null) { throw new ArgumentNullException("providerData.Name"); } BaseAdd(providerData.Name, providerData); }