Exemple #1
0
        /// <summary>
        /// <para>Adds an <see cref="ProviderData"/> into the collection.</para>
        /// </summary>
        /// <param name="name">
        /// <para>The name of the key for the <parmref name="providerData"/>. The value can not be a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </param>
        /// <param name="providerData">
        /// <para>The <see cref="ProviderData"/> 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="ProviderData.Name"/>, it will be replaced with the new reference.</para>
        /// </remarks>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// <para>- or -</para>
        /// <para><paramref name="providerData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        protected internal void AddProvider(string name, ProviderData providerData)
        {
            ArgumentValidation.CheckForNullReference(name, "name");
            ArgumentValidation.CheckForNullReference(providerData, "providerData");

            BaseAdd(name, providerData);
        }
        /// <summary>
        /// <para>Adds an <see cref="ProviderData"/> into the collection.</para>
        /// </summary>
        /// <param name="name">
        /// <para>The name of the key for the <parmref name="providerData"/>. The value can not be a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </param>
        /// <param name="providerData">
        /// <para>The <see cref="ProviderData"/> 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="ProviderData.Name"/>, it will be replaced with the new reference.</para>
        /// </remarks>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// <para>- or -</para>
        /// <para><paramref name="providerData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        protected internal void AddProvider(string name, ProviderData providerData)
        {
            ArgumentValidation.CheckForNullReference(name, "name");
            ArgumentValidation.CheckForNullReference(providerData, "providerData");

            BaseAdd(name, providerData);
        }
 /// <summary>
 /// Copies the entire CustomProviderDataCollection to a compatible one-dimensional ProviderData array, starting at the specified index of the target array.
 /// </summary>
 public void CopyTo(ProviderData[] array, int index)
 {
     for (IEnumerator e = this.GetEnumerator(); e.MoveNext(); )
     {
         array.SetValue(e.Current, index++);
     }
 }
        /// <summary>
        /// <para>Adds an <see cref="ProviderData"/> into the collection.</para>
        /// </summary>
        /// <param name="providerData">
        /// <para>The <see cref="ProviderData"/> 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="ProviderData.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>
        /// </exception>
        /// <exception cref="InvalidOperationException">
        /// <para><seealso cref="ProviderData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        protected internal void AddProvider(ProviderData providerData)
        {
            ArgumentValidation.CheckForNullReference(providerData, "providerData");

            if (providerData.Name == null)
            {
                throw new InvalidOperationException(SR.ExceptionNullProviderDataName);
            }
            BaseAdd(providerData.Name, providerData);
        }
Exemple #5
0
        /// <summary>
        /// <para>Adds an <see cref="ProviderData"/> into the collection.</para>
        /// </summary>
        /// <param name="providerData">
        /// <para>The <see cref="ProviderData"/> 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="ProviderData.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>
        /// </exception>
        /// <exception cref="InvalidOperationException">
        /// <para><seealso cref="ProviderData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para>
        /// </exception>
        protected internal void AddProvider(ProviderData providerData)
        {
            ArgumentValidation.CheckForNullReference(providerData, "providerData");

            if (providerData.Name == null)
            {
                throw new InvalidOperationException(SR.ExceptionNullProviderDataName);
            }
            BaseAdd(providerData.Name, providerData);
        }
 public MockAuthenticationProvider(ProviderData providerData, ConfigurationContext context)
 {
 }
 public void Initialize(ProviderData providerData, ConfigurationContext configurationContext)
 {
 }
 /// <summary>
 /// <para>Sets the value of the entry at the specified index of the <see cref="ProviderDataCollection"/> instance.</para>
 /// </summary>
 /// <param name="index">
 /// <para>The zero-based index of the entry to set.</para>
 /// </param>
 /// <param name="data">
 /// <para>The <see cref="ProviderData"/> object that represents the new value of the entry to set. The value can be a <see langword="null"/> reference (<see langword="Nothing"/> in Visual Basic).</para>
 /// </param>
 /// <exception cref="NotSupportedException">
 /// <para>The collection is read-only.</para>
 /// </exception>
 /// <exception cref="ArgumentOutOfRangeException">
 /// <para><paramref name="index"/> is outside the valid range of indexes for the collection.</para>
 /// </exception>
 protected internal void SetProvider(int index, ProviderData data)
 {
     BaseSet(index, data);
 }
        /// <summary>
        /// <para>Sets the value of the first entry with the specified key in the <see cref="ProviderDataCollection"/> instance, if found; otherwise, adds an entry with the specified key and value into the <see cref="DataCollection"/> instance.</para>
        /// </summary>
        /// <param name="name">
        /// <para>The string key of the entry to set. The key can be a <see langword="null"/> reference (<see langword="Nothing"/> in Visual Basic)</para>.
        /// </param>
        /// <param name="data">
        /// <para>The <see cref="ProviderData"/> object that represents the new value of the entry to set. The value can be a <see langword="null"/> reference (<see langword="Nothing"/> in Visual Basic).</para>
        /// </param>
        /// <exception cref="InvalidOperationException">
        /// <para>The collection already contains an entry for <paramref name="name"/>.</para>
        /// </exception>
        /// <exception cref="NotSupportedException">
        /// <para>The collection is read-only.</para>
        /// </exception>
        protected internal void SetProvider(string name, ProviderData data)
        {
            ArgumentValidation.CheckForNullReference(name, "name");

            BaseSet(name, data);
        }
 /// <devdoc>
 /// Adds an ProviderData into the collection with a specific name.
 /// </devdoc>
 public void Add(string name, ProviderData providerData)
 {
     base.AddProvider(name, providerData);
 }
 /// <devdoc>
 /// Adds an ProviderData into the collection.
 /// </devdoc>
 public void Add(ProviderData providerData)
 {
     base.AddProvider(providerData);
 }
Exemple #12
0
        /// <summary>
        /// <para>Sets the value of the first entry with the specified key in the <see cref="ProviderDataCollection"/> instance, if found; otherwise, adds an entry with the specified key and value into the <see cref="DataCollection"/> instance.</para>
        /// </summary>
        /// <param name="name">
        /// <para>The string key of the entry to set. The key can be a <see langword="null"/> reference (<see langword="Nothing"/> in Visual Basic)</para>.
        /// </param>
        /// <param name="data">
        /// <para>The <see cref="ProviderData"/> object that represents the new value of the entry to set. The value can be a <see langword="null"/> reference (<see langword="Nothing"/> in Visual Basic).</para>
        /// </param>
        /// <exception cref="InvalidOperationException">
        /// <para>The collection already contains an entry for <paramref name="name"/>.</para>
        /// </exception>
        /// <exception cref="NotSupportedException">
        /// <para>The collection is read-only.</para>
        /// </exception>
        protected internal void SetProvider(string name, ProviderData data)
        {
            ArgumentValidation.CheckForNullReference(name, "name");

            BaseSet(name, data);
        }
Exemple #13
0
 /// <summary>
 /// <para>Sets the value of the entry at the specified index of the <see cref="ProviderDataCollection"/> instance.</para>
 /// </summary>
 /// <param name="index">
 /// <para>The zero-based index of the entry to set.</para>
 /// </param>
 /// <param name="data">
 /// <para>The <see cref="ProviderData"/> object that represents the new value of the entry to set. The value can be a <see langword="null"/> reference (<see langword="Nothing"/> in Visual Basic).</para>
 /// </param>
 /// <exception cref="NotSupportedException">
 /// <para>The collection is read-only.</para>
 /// </exception>
 /// <exception cref="ArgumentOutOfRangeException">
 /// <para><paramref name="index"/> is outside the valid range of indexes for the collection.</para>
 /// </exception>
 protected internal void SetProvider(int index, ProviderData data)
 {
     BaseSet(index, data);
 }
Exemple #14
0
 /// <devdoc>
 /// Adds an ProviderData into the collection with a specific name.
 /// </devdoc>
 public void Add(string name, ProviderData providerData)
 {
     base.AddProvider(name, providerData);
 }
Exemple #15
0
 /// <devdoc>
 /// Adds an ProviderData into the collection.
 /// </devdoc>
 public void Add(ProviderData providerData)
 {
     base.AddProvider(providerData);
 }