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
- New.cs
- NotificationContext.cs
- TypeBrowserDialog.cs
- PatternMatcher.cs
- XmlObjectSerializer.cs
- TdsParserHelperClasses.cs
- Zone.cs
- FloatSumAggregationOperator.cs
- EntitySetRetriever.cs
- EntityDataSourceValidationException.cs
- Internal.cs
- FixedSOMTableRow.cs
- XmlLanguageConverter.cs
- HttpProfileGroupBase.cs
- SlotInfo.cs
- EntitySetBaseCollection.cs
- SamlSerializer.cs
- WebPartEditorCancelVerb.cs
- Int32CollectionConverter.cs
- BitmapPalettes.cs
- ResourceFallbackManager.cs
- XmlSerializableWriter.cs
- OrderByQueryOptionExpression.cs
- DbConnectionPoolGroupProviderInfo.cs
- DataTable.cs
- TreeNode.cs
- Span.cs
- SqlBulkCopyColumnMapping.cs
- TabletCollection.cs
- ModelItemCollection.cs
- ConfigurationLocationCollection.cs
- HtmlListAdapter.cs
- FixedSOMLineCollection.cs
- AspNetSynchronizationContext.cs
- DrawListViewSubItemEventArgs.cs
- XPathChildIterator.cs
- SqlGenerator.cs
- SqlTypesSchemaImporter.cs
- ToolStripArrowRenderEventArgs.cs
- CalloutQueueItem.cs
- WmlValidationSummaryAdapter.cs
- Focus.cs
- BaseTemplateBuildProvider.cs
- QilScopedVisitor.cs
- ClientSettingsSection.cs
- GcSettings.cs
- SecurityManager.cs
- SignedInfo.cs
- XmlNotation.cs
- OleDbInfoMessageEvent.cs
- PasswordPropertyTextAttribute.cs
- GenericIdentity.cs
- ClientRoleProvider.cs
- SocketException.cs
- Emitter.cs
- SizeValueSerializer.cs
- ApplyImportsAction.cs
- InternalMappingException.cs
- NamedObject.cs
- BindableAttribute.cs
- TextWriter.cs
- BuildManager.cs
- TranslateTransform.cs
- LinkDesigner.cs
- ReflectionTypeLoadException.cs
- XPathException.cs
- BlockUIContainer.cs
- ProfileInfo.cs
- SafeEventHandle.cs
- EncoderBestFitFallback.cs
- Rijndael.cs
- ObjectViewEntityCollectionData.cs
- StreamReader.cs
- DefaultTextStoreTextComposition.cs
- PeerNameRecordCollection.cs
- RuleSettings.cs
- ModelItemKeyValuePair.cs
- DynamicResourceExtension.cs
- TextCompositionEventArgs.cs
- MailMessageEventArgs.cs
- ObfuscateAssemblyAttribute.cs
- MultipartIdentifier.cs
- RegexWorker.cs
- TypeSemantics.cs
- DynamicQueryableWrapper.cs
- DynamicResourceExtensionConverter.cs
- DataGridViewColumnConverter.cs
- DataObjectFieldAttribute.cs
- RemoteWebConfigurationHost.cs
- SqlUserDefinedTypeAttribute.cs
- DataGridCaption.cs
- CommandHelpers.cs
- KeyedHashAlgorithm.cs
- GlobalAclOperationRequirement.cs
- DataGridViewCheckBoxColumn.cs
- mediaeventshelper.cs
- sqlinternaltransaction.cs
- TextFormatter.cs
- DeviceSpecific.cs
- HttpListenerRequestUriBuilder.cs