Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Data / System / Data / SqlClient / SqlErrorCollection.cs / 1 / SqlErrorCollection.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
// [....]
//-----------------------------------------------------------------------------
namespace System.Data.SqlClient {
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
[Serializable, ListBindable(false)]
#if WINFSInternalOnly
internal
#else
public
#endif
sealed class SqlErrorCollection : ICollection {
private ArrayList errors = new ArrayList();
internal SqlErrorCollection() {
}
public void CopyTo (Array array, int index) {
this.errors.CopyTo(array, index);
}
public void CopyTo (SqlError[] array, int index) {
this.errors.CopyTo(array, index);
}
public int Count {
get { return this.errors.Count;}
}
object System.Collections.ICollection.SyncRoot { // MDAC 68481
get { return this;}
}
bool System.Collections.ICollection.IsSynchronized { // MDAC 68481
get { return false;}
}
public SqlError this[int index] {
get {
return (SqlError) this.errors[index];
}
}
public IEnumerator GetEnumerator() {
return errors.GetEnumerator();
}
internal void Add(SqlError error) {
this.errors.Add(error);
}
}
}
// 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.Diagnostics;
using System.Runtime.InteropServices;
[Serializable, ListBindable(false)]
#if WINFSInternalOnly
internal
#else
public
#endif
sealed class SqlErrorCollection : ICollection {
private ArrayList errors = new ArrayList();
internal SqlErrorCollection() {
}
public void CopyTo (Array array, int index) {
this.errors.CopyTo(array, index);
}
public void CopyTo (SqlError[] array, int index) {
this.errors.CopyTo(array, index);
}
public int Count {
get { return this.errors.Count;}
}
object System.Collections.ICollection.SyncRoot { // MDAC 68481
get { return this;}
}
bool System.Collections.ICollection.IsSynchronized { // MDAC 68481
get { return false;}
}
public SqlError this[int index] {
get {
return (SqlError) this.errors[index];
}
}
public IEnumerator GetEnumerator() {
return errors.GetEnumerator();
}
internal void Add(SqlError error) {
this.errors.Add(error);
}
}
}
// 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
- EntryIndex.cs
- SafeHandle.cs
- WebBrowserNavigatingEventHandler.cs
- X509Certificate2Collection.cs
- Wildcard.cs
- SHA512Cng.cs
- StructuredTypeEmitter.cs
- HttpCacheVaryByContentEncodings.cs
- BindingExpressionBase.cs
- InvokeBase.cs
- newinstructionaction.cs
- ProfileSettings.cs
- X509CertificateStore.cs
- ValidatorAttribute.cs
- JsonGlobals.cs
- AttachedPropertyMethodSelector.cs
- WpfKnownMemberInvoker.cs
- XmlSchemaAnnotation.cs
- DataGridViewCellLinkedList.cs
- PrintDialog.cs
- WebCategoryAttribute.cs
- ResetableIterator.cs
- DataViewListener.cs
- HttpCachePolicyBase.cs
- Socket.cs
- ISFClipboardData.cs
- NegatedCellConstant.cs
- FormViewDeletedEventArgs.cs
- CodeExpressionStatement.cs
- RectangleHotSpot.cs
- UserPreferenceChangedEventArgs.cs
- TreeNodeStyleCollection.cs
- GenericPrincipal.cs
- EntityDataSourceViewSchema.cs
- FileVersion.cs
- WebContext.cs
- cookiecontainer.cs
- SafeRightsManagementSessionHandle.cs
- AlgoModule.cs
- UpdateCommandGenerator.cs
- XmlNodeReader.cs
- DataSvcMapFile.cs
- Attributes.cs
- DataSetUtil.cs
- ObjectMemberMapping.cs
- CopyCodeAction.cs
- WorkflowStateRollbackService.cs
- LoginUtil.cs
- TextSelection.cs
- SqlUtils.cs
- BinaryReader.cs
- StringToken.cs
- MULTI_QI.cs
- Button.cs
- TextEditorCopyPaste.cs
- CompositeCollectionView.cs
- ToolStripContentPanel.cs
- EventMappingSettings.cs
- ReaderWriterLock.cs
- PeerCollaboration.cs
- ScriptControlManager.cs
- SHA384.cs
- MethodImplAttribute.cs
- LostFocusEventManager.cs
- DataServiceEntityAttribute.cs
- MenuCommand.cs
- Window.cs
- Char.cs
- EntityEntry.cs
- LabelInfo.cs
- MenuCommands.cs
- SystemException.cs
- TableDesigner.cs
- TraversalRequest.cs
- AppDomainAttributes.cs
- WebResourceUtil.cs
- IPHostEntry.cs
- CommonXSendMessage.cs
- FileDataSourceCache.cs
- BamlLocalizer.cs
- ContractBase.cs
- DataGridViewSelectedRowCollection.cs
- ShaderEffect.cs
- ICspAsymmetricAlgorithm.cs
- DocComment.cs
- XmlBinaryWriter.cs
- FormatterServices.cs
- Command.cs
- PointLightBase.cs
- BindingList.cs
- TypedReference.cs
- ComponentEditorForm.cs
- ITextView.cs
- HttpModuleCollection.cs
- String.cs
- ImmComposition.cs
- IndexOutOfRangeException.cs
- ShaperBuffers.cs
- ContentDesigner.cs
- StringOutput.cs