Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / SqlClient / SqlParameterCollection.cs / 1305376 / 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)
]
public 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
- CodeStatementCollection.cs
- CheckBoxStandardAdapter.cs
- List.cs
- EditorPartCollection.cs
- SecurityException.cs
- UnicodeEncoding.cs
- ButtonPopupAdapter.cs
- ScrollItemProviderWrapper.cs
- BitArray.cs
- CmsInterop.cs
- CatalogPart.cs
- SerializationEventsCache.cs
- DataServiceQueryContinuation.cs
- File.cs
- ToolStripSeparator.cs
- BaseTemplatedMobileComponentEditor.cs
- HostingPreferredMapPath.cs
- SoapEnumAttribute.cs
- StringCollection.cs
- HttpPostLocalhostServerProtocol.cs
- WebEventTraceProvider.cs
- FieldDescriptor.cs
- DataBindingExpressionBuilder.cs
- PeerNearMe.cs
- ByteFacetDescriptionElement.cs
- AssemblyAttributes.cs
- ByeMessageApril2005.cs
- FormatException.cs
- SelectionService.cs
- MemberCollection.cs
- ClientData.cs
- RestHandlerFactory.cs
- EventLog.cs
- RuntimeConfigLKG.cs
- Color.cs
- PageAdapter.cs
- COM2FontConverter.cs
- LiteralDesigner.cs
- Attributes.cs
- Point3DAnimation.cs
- HierarchicalDataSourceControl.cs
- DataServiceProviderWrapper.cs
- AnyAllSearchOperator.cs
- TrackingStringDictionary.cs
- WebPartMenuStyle.cs
- LogConverter.cs
- WebPartConnection.cs
- ProcessManager.cs
- XmlSubtreeReader.cs
- XamlSerializerUtil.cs
- X509InitiatorCertificateServiceElement.cs
- CrossSiteScriptingValidation.cs
- OleDbTransaction.cs
- FixedDocumentPaginator.cs
- AddInAttribute.cs
- XmlSchemaAttributeGroup.cs
- ResourceDescriptionAttribute.cs
- ConnectionManagementElement.cs
- DataComponentNameHandler.cs
- InfoCard.cs
- TextRangeEditTables.cs
- XPathArrayIterator.cs
- remotingproxy.cs
- ExecutorLocksHeldException.cs
- TabControlCancelEvent.cs
- XmlReflectionImporter.cs
- UidPropertyAttribute.cs
- TCPListener.cs
- CallbackHandler.cs
- EarlyBoundInfo.cs
- ResourceExpressionBuilder.cs
- AuthenticationService.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- FontStretches.cs
- unsafenativemethodstextservices.cs
- BasicExpandProvider.cs
- ObjectPersistData.cs
- InstallHelper.cs
- ParagraphResult.cs
- TemplateKeyConverter.cs
- StackBuilderSink.cs
- LocationFactory.cs
- DesignerCatalogPartChrome.cs
- XmlChildNodes.cs
- Menu.cs
- EventDescriptor.cs
- figurelengthconverter.cs
- TransformedBitmap.cs
- HttpCapabilitiesSectionHandler.cs
- FormViewUpdateEventArgs.cs
- FrameSecurityDescriptor.cs
- ConnectionOrientedTransportManager.cs
- ObjectQuery.cs
- WindowsScrollBar.cs
- ProfessionalColorTable.cs
- DataRowComparer.cs
- MILUtilities.cs
- BufferedReceiveElement.cs
- StringOutput.cs
- MatrixTransform3D.cs