Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Data / System / Data / SqlClient / SqlParameterCollection.cs / 1 / SqlParameterCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data.SqlClient { using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Data.Common; using System.Data.ProviderBase; using System.Data.Sql; using System.Data.SqlTypes; using System.Diagnostics; [ Editor("Microsoft.VSDesigner.Data.Design.DBParametersEditor, " + AssemblyRef.MicrosoftVSDesigner, "System.Drawing.Design.UITypeEditor, " + AssemblyRef.SystemDrawing), ListBindable(false) ] #if WINFSInternalOnly internal #else public #endif sealed partial class SqlParameterCollection : DbParameterCollection { private bool _isDirty; private static Type ItemType = typeof(SqlParameter); internal SqlParameterCollection() : base() { } internal bool IsDirty { get { return _isDirty; } set { _isDirty = value; } } [ Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] new public SqlParameter this[int index] { get { return (SqlParameter)GetParameter(index); } set { SetParameter(index, value); } } [ Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] new public SqlParameter this[string parameterName] { get { return (SqlParameter)GetParameter(parameterName); } set { SetParameter(parameterName, value); } } public SqlParameter Add(SqlParameter 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 SqlParameter Add(string parameterName, object value) { return Add(new SqlParameter(parameterName, value)); } public SqlParameter AddWithValue(string parameterName, object value) { // 79027 return Add(new SqlParameter(parameterName, value)); } public SqlParameter Add(string parameterName, SqlDbType sqlDbType) { return Add(new SqlParameter(parameterName, sqlDbType)); } public SqlParameter Add(string parameterName, SqlDbType sqlDbType, int size) { return Add(new SqlParameter(parameterName, sqlDbType, size)); } public SqlParameter Add(string parameterName, SqlDbType sqlDbType, int size, string sourceColumn) { return Add(new SqlParameter(parameterName, sqlDbType, size, sourceColumn)); } public void AddRange(SqlParameter[] values) { AddRange((Array)values); } override public bool Contains(string value) { // WebData 97349 return (-1 != IndexOf(value)); } public bool Contains(SqlParameter value) { return (-1 != IndexOf(value)); } public void CopyTo(SqlParameter[] array, int index) { CopyTo((Array)array, index); } public int IndexOf(SqlParameter value) { return IndexOf((object)value); } public void Insert(int index, SqlParameter value) { Insert(index, (object)value); } private void OnChange() { IsDirty = true; } public void Remove(SqlParameter 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.SqlClient { using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Data.Common; using System.Data.ProviderBase; using System.Data.Sql; using System.Data.SqlTypes; using System.Diagnostics; [ Editor("Microsoft.VSDesigner.Data.Design.DBParametersEditor, " + AssemblyRef.MicrosoftVSDesigner, "System.Drawing.Design.UITypeEditor, " + AssemblyRef.SystemDrawing), ListBindable(false) ] #if WINFSInternalOnly internal #else public #endif sealed partial class SqlParameterCollection : DbParameterCollection { private bool _isDirty; private static Type ItemType = typeof(SqlParameter); internal SqlParameterCollection() : base() { } internal bool IsDirty { get { return _isDirty; } set { _isDirty = value; } } [ Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] new public SqlParameter this[int index] { get { return (SqlParameter)GetParameter(index); } set { SetParameter(index, value); } } [ Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] new public SqlParameter this[string parameterName] { get { return (SqlParameter)GetParameter(parameterName); } set { SetParameter(parameterName, value); } } public SqlParameter Add(SqlParameter 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 SqlParameter Add(string parameterName, object value) { return Add(new SqlParameter(parameterName, value)); } public SqlParameter AddWithValue(string parameterName, object value) { // 79027 return Add(new SqlParameter(parameterName, value)); } public SqlParameter Add(string parameterName, SqlDbType sqlDbType) { return Add(new SqlParameter(parameterName, sqlDbType)); } public SqlParameter Add(string parameterName, SqlDbType sqlDbType, int size) { return Add(new SqlParameter(parameterName, sqlDbType, size)); } public SqlParameter Add(string parameterName, SqlDbType sqlDbType, int size, string sourceColumn) { return Add(new SqlParameter(parameterName, sqlDbType, size, sourceColumn)); } public void AddRange(SqlParameter[] values) { AddRange((Array)values); } override public bool Contains(string value) { // WebData 97349 return (-1 != IndexOf(value)); } public bool Contains(SqlParameter value) { return (-1 != IndexOf(value)); } public void CopyTo(SqlParameter[] array, int index) { CopyTo((Array)array, index); } public int IndexOf(SqlParameter value) { return IndexOf((object)value); } public void Insert(int index, SqlParameter value) { Insert(index, (object)value); } private void OnChange() { IsDirty = true; } public void Remove(SqlParameter value) { Remove((object)value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlRawWriterWrapper.cs
- X509Extension.cs
- DelimitedListTraceListener.cs
- TextFragmentEngine.cs
- JsonCollectionDataContract.cs
- ToolStripTemplateNode.cs
- SynchronizedMessageSource.cs
- MsmqBindingElementBase.cs
- MessageHeaderInfoTraceRecord.cs
- BitmapMetadataBlob.cs
- InvalidCastException.cs
- BitmapFrame.cs
- Utilities.cs
- BookmarkUndoUnit.cs
- OleDbInfoMessageEvent.cs
- MsmqIntegrationValidationBehavior.cs
- FixedElement.cs
- GlobalProxySelection.cs
- LinkClickEvent.cs
- ProxyElement.cs
- OutOfMemoryException.cs
- XmlSchemaAll.cs
- FontDifferentiator.cs
- RectConverter.cs
- DataControlLinkButton.cs
- GPRECTF.cs
- CellQuery.cs
- SerializationFieldInfo.cs
- BaseParser.cs
- initElementDictionary.cs
- HttpPostProtocolReflector.cs
- XmlToDatasetMap.cs
- Ray3DHitTestResult.cs
- OrderedDictionary.cs
- Expression.cs
- ParenthesizePropertyNameAttribute.cs
- InkCanvasInnerCanvas.cs
- Timeline.cs
- Exceptions.cs
- DependencyObjectType.cs
- _OSSOCK.cs
- ProbeDuplexAsyncResult.cs
- SessionEndingEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- DocumentViewerBase.cs
- SqlDeflator.cs
- UnicastIPAddressInformationCollection.cs
- TabControl.cs
- FilteredDataSetHelper.cs
- SqlVisitor.cs
- StylusButtonCollection.cs
- SQLStringStorage.cs
- FieldDescriptor.cs
- SqlDataSourceFilteringEventArgs.cs
- FontFamilyValueSerializer.cs
- SHA384Managed.cs
- HiddenField.cs
- XsltQilFactory.cs
- OneOfScalarConst.cs
- BufferAllocator.cs
- ParagraphResult.cs
- CustomTypeDescriptor.cs
- SBCSCodePageEncoding.cs
- OrthographicCamera.cs
- CellQuery.cs
- ServiceHttpHandlerFactory.cs
- ReadOnlyDataSourceView.cs
- CookieParameter.cs
- OneOf.cs
- NameValueConfigurationElement.cs
- QEncodedStream.cs
- XPathDocument.cs
- PointValueSerializer.cs
- ConfigXmlElement.cs
- TreeNodeStyleCollection.cs
- AccessKeyManager.cs
- Utils.cs
- ComEventsMethod.cs
- FixedSOMTableCell.cs
- SQlBooleanStorage.cs
- SplitterPanel.cs
- sqlmetadatafactory.cs
- DependencyPropertyConverter.cs
- XmlTextEncoder.cs
- SqlBinder.cs
- DiscoveryInnerClientAdhoc11.cs
- httpstaticobjectscollection.cs
- ClientOperationFormatterProvider.cs
- WmpBitmapDecoder.cs
- RemoteWebConfigurationHostStream.cs
- EntityObject.cs
- DataGridViewCellEventArgs.cs
- IconHelper.cs
- SqlGenerator.cs
- QilInvoke.cs
- Int16AnimationBase.cs
- SessionStateModule.cs
- _AuthenticationState.cs
- SQLByte.cs
- PreservationFileWriter.cs