OracleParameterCollection.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / DataOracleClient / System / Data / OracleClient / OracleParameterCollection.cs / 1 / OracleParameterCollection.cs

                            //------------------------------------------------------------------------------ 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
//-----------------------------------------------------------------------------
 
namespace System.Data.OracleClient { 
    using System;
    using System.Collections; 
    using System.ComponentModel;
    using System.Data;
    using System.Data.Common;
    using System.Data.ProviderBase; 
    using System.Diagnostics;
    using System.Globalization; 
    using System.Runtime.InteropServices; 

    [Editor("Microsoft.VSDesigner.Data.Design.DBParametersEditor, " + AssemblyRef.MicrosoftVSDesigner, "System.Drawing.Design.UITypeEditor, " + AssemblyRef.SystemDrawing), 
    ListBindable(false)]
    sealed public partial class OracleParameterCollection : DbParameterCollection {

        private static Type ItemType = typeof(OracleParameter); 

        new public OracleParameter this[int index] { 
            get { 
                return (OracleParameter)GetParameter(index);
            } 
            set {
                SetParameter(index, value);
            }
        } 

        new public OracleParameter this[string parameterName] { 
            get { 
                int index = IndexOf(parameterName);
                return (OracleParameter)GetParameter(index); 
            }
            set {
                int index = IndexOf(parameterName);
                SetParameter(index, value); 
            }
        } 
 
        public OracleParameter Add(OracleParameter value) {
            Add((object)value); 
            return value;
        }

        [ EditorBrowsableAttribute(EditorBrowsableState.Never) ] 
        [ ObsoleteAttribute("Add(String parameterName, Object value) has been deprecated.  Use AddWithValue(String parameterName, Object value).  http://go.microsoft.com/fwlink/?linkid=14202", false) ]  // 79027
        public OracleParameter Add (String parameterName, Object value) { 
            OracleParameter p = new OracleParameter(parameterName, value); 
            return Add(p);
        } 

        public OracleParameter Add (String parameterName, OracleType dataType) {
            OracleParameter p = new OracleParameter(parameterName, dataType);
            return Add(p); 
        }
 
        public OracleParameter Add (String parameterName, OracleType dataType, Int32 size) { 
            OracleParameter p = new OracleParameter(parameterName, dataType, size);
            return Add(p); 
        }

        public OracleParameter Add (String parameterName, OracleType dataType, Int32 size, String srcColumn) {
            OracleParameter p = new OracleParameter(parameterName, dataType, size, srcColumn); 
            return Add(p);
        } 
 
        public void AddRange(OracleParameter[] values) {
            AddRange((Array)values); 
        }

        public OracleParameter AddWithValue(string parameterName, object value) { // MDAC 79027
            OracleParameter p = new OracleParameter(parameterName, value); 
            return Add(p);
        } 
 
        override public bool Contains(string parameterName) {
            return (-1 != IndexOf(parameterName)); 
        }

        public bool Contains(OracleParameter value) {
            return (-1 != IndexOf(value)); 
        }
 
        public void CopyTo(OracleParameter[] array, int index) { 
            CopyTo((Array)array, index);
        } 

        public int IndexOf(OracleParameter value) {
            return IndexOf((object)value);
        } 

        public void Insert(int index, OracleParameter value) { 
            Insert(index, (object)value); 
        }
 
        private void OnChange() {
        }

        public void Remove(OracleParameter value) { 
            Remove((object)value);
        } 
 
    }
} 


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
//-----------------------------------------------------------------------------
 
namespace System.Data.OracleClient { 
    using System;
    using System.Collections; 
    using System.ComponentModel;
    using System.Data;
    using System.Data.Common;
    using System.Data.ProviderBase; 
    using System.Diagnostics;
    using System.Globalization; 
    using System.Runtime.InteropServices; 

    [Editor("Microsoft.VSDesigner.Data.Design.DBParametersEditor, " + AssemblyRef.MicrosoftVSDesigner, "System.Drawing.Design.UITypeEditor, " + AssemblyRef.SystemDrawing), 
    ListBindable(false)]
    sealed public partial class OracleParameterCollection : DbParameterCollection {

        private static Type ItemType = typeof(OracleParameter); 

        new public OracleParameter this[int index] { 
            get { 
                return (OracleParameter)GetParameter(index);
            } 
            set {
                SetParameter(index, value);
            }
        } 

        new public OracleParameter this[string parameterName] { 
            get { 
                int index = IndexOf(parameterName);
                return (OracleParameter)GetParameter(index); 
            }
            set {
                int index = IndexOf(parameterName);
                SetParameter(index, value); 
            }
        } 
 
        public OracleParameter Add(OracleParameter value) {
            Add((object)value); 
            return value;
        }

        [ EditorBrowsableAttribute(EditorBrowsableState.Never) ] 
        [ ObsoleteAttribute("Add(String parameterName, Object value) has been deprecated.  Use AddWithValue(String parameterName, Object value).  http://go.microsoft.com/fwlink/?linkid=14202", false) ]  // 79027
        public OracleParameter Add (String parameterName, Object value) { 
            OracleParameter p = new OracleParameter(parameterName, value); 
            return Add(p);
        } 

        public OracleParameter Add (String parameterName, OracleType dataType) {
            OracleParameter p = new OracleParameter(parameterName, dataType);
            return Add(p); 
        }
 
        public OracleParameter Add (String parameterName, OracleType dataType, Int32 size) { 
            OracleParameter p = new OracleParameter(parameterName, dataType, size);
            return Add(p); 
        }

        public OracleParameter Add (String parameterName, OracleType dataType, Int32 size, String srcColumn) {
            OracleParameter p = new OracleParameter(parameterName, dataType, size, srcColumn); 
            return Add(p);
        } 
 
        public void AddRange(OracleParameter[] values) {
            AddRange((Array)values); 
        }

        public OracleParameter AddWithValue(string parameterName, object value) { // MDAC 79027
            OracleParameter p = new OracleParameter(parameterName, value); 
            return Add(p);
        } 
 
        override public bool Contains(string parameterName) {
            return (-1 != IndexOf(parameterName)); 
        }

        public bool Contains(OracleParameter value) {
            return (-1 != IndexOf(value)); 
        }
 
        public void CopyTo(OracleParameter[] array, int index) { 
            CopyTo((Array)array, index);
        } 

        public int IndexOf(OracleParameter value) {
            return IndexOf((object)value);
        } 

        public void Insert(int index, OracleParameter value) { 
            Insert(index, (object)value); 
        }
 
        private void OnChange() {
        }

        public void Remove(OracleParameter value) { 
            Remove((object)value);
        } 
 
    }
} 


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK