/// <summary> /// <para>Adds an <see cref="OraclePackageData"/> into the collection.</para> /// </summary> /// <param name="oraclePackageData"> /// <para>The <see cref="OraclePackageData"/> 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="OraclePackageData.Name"/>, it will be replaced with the new reference.</para> /// </remarks> /// <exception cref="ArgumentNullException"> /// <para><paramref name="oraclePackageData"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para> /// </exception> /// <exception cref="InvalidOperationException"> /// <para><seealso cref="OraclePackageData.Name"/> is a <see langword="null"/> reference (Nothing in Visual Basic).</para> /// </exception> public void Add(OraclePackageData oraclePackageData) { ArgumentValidation.CheckForNullReference(oraclePackageData, "oraclePackageData"); ArgumentValidation.CheckForInvalidNullNameReference(oraclePackageData.Name, typeof(OraclePackageData).FullName); BaseAdd(oraclePackageData.Name, oraclePackageData); }
/// <summary> /// <para>Copies the entire <see cref="OraclePackageDataCollection"/> to a compatible one-dimensional <see cref="Array"/>, starting at the specified index of the target array.</para> /// </summary> /// <param name="array"> /// <para>The one-dimensional <see cref="OraclePackageDataCollection"/> array that is the destination of the elements copied from <see cref="OraclePackageDataCollection"/>. The <see cref="OraclePackageData"/> array must have zero-based indexing.</para> /// </param> /// <param name="index"> /// <para>The zero-based index in array at which copying begins.</para> /// </param> public void CopyTo(OraclePackageData[] array, int index) { base.CopyTo(array, index); }