DesignerDataParameter.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / Data / DesignerDataParameter.cs / 1 / DesignerDataParameter.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.ComponentModel.Design.Data { 
 
    using System;
    using System.Collections; 
    using System.Data;

    /// 
    /// Represents a parameter of a stored procedure in a data connection. 
    /// A collection of this type is returned from the
    /// DesignerStoredProcedure.Parameters property. 
    ///  
    public sealed class DesignerDataParameter {
 
        private DbType _dataType;
        private ParameterDirection _direction;
        private string _name;
 
        /// 
        ///  
        public DesignerDataParameter(string name, DbType dataType, ParameterDirection direction) { 
            _dataType = dataType;
            _direction = direction; 
            _name = name;
        }

        ///  
        /// The type of the parameter.
        ///  
        public DbType DataType { 
            get {
                return _dataType; 
            }
        }

        ///  
        /// The in/out semantics of the parameter.
        ///  
        public ParameterDirection Direction { 
            get {
                return _direction; 
            }
        }

        ///  
        /// The name of the parameter.
        ///  
        public string Name { 
            get {
                return _name; 
            }
        }
    }
} 


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

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