Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HtmlEncodedRawTextWriter.cs
- MultiTrigger.cs
- Config.cs
- WebControlsSection.cs
- CompositeFontFamily.cs
- XmlSchemaAnyAttribute.cs
- TabPage.cs
- _AutoWebProxyScriptEngine.cs
- AttachmentService.cs
- SettingsAttributeDictionary.cs
- LayoutInformation.cs
- PointF.cs
- FileDialogCustomPlacesCollection.cs
- PartialCachingControl.cs
- GeometryHitTestResult.cs
- GeneralTransform2DTo3D.cs
- ObjectStateEntryDbDataRecord.cs
- FixedSOMPageConstructor.cs
- MultiPartWriter.cs
- StrokeNodeEnumerator.cs
- ExpressionValueEditor.cs
- LookupNode.cs
- SeparatorAutomationPeer.cs
- FixedSOMTable.cs
- DataGridViewRowCollection.cs
- AssemblyHelper.cs
- TableAdapterManagerHelper.cs
- Expression.cs
- ScrollableControl.cs
- XmlWriterDelegator.cs
- ControlTemplate.cs
- ToolStripPanelRow.cs
- SqlLiftWhereClauses.cs
- InputEventArgs.cs
- AdministrationHelpers.cs
- DurableInstanceContextProvider.cs
- VersionPair.cs
- SecurityPermission.cs
- Descriptor.cs
- XmlDataFileEditor.cs
- ScrollChrome.cs
- XmlConvert.cs
- JavaScriptString.cs
- TimerTable.cs
- DeclarativeCatalogPart.cs
- SiteMapDataSource.cs
- RequestContext.cs
- DesignerTransactionCloseEvent.cs
- ForwardPositionQuery.cs
- Rotation3D.cs
- DataGridViewColumnHeaderCell.cs
- RegistrySecurity.cs
- PackageProperties.cs
- TextRangeEdit.cs
- AnnotationHighlightLayer.cs
- Events.cs
- BulletChrome.cs
- BlurEffect.cs
- DataColumnChangeEvent.cs
- ToolStripItemImageRenderEventArgs.cs
- CommandBindingCollection.cs
- MaterialGroup.cs
- CapabilitiesUse.cs
- EmbeddedMailObjectsCollection.cs
- MailHeaderInfo.cs
- filewebresponse.cs
- PerformanceCounterCategory.cs
- ValueQuery.cs
- ExtenderControl.cs
- BaseValidator.cs
- MenuItemStyleCollection.cs
- UnitySerializationHolder.cs
- HierarchicalDataSourceControl.cs
- StreamWriter.cs
- DataGridRelationshipRow.cs
- GeneralTransform3D.cs
- ErrorHandlingAcceptor.cs
- GridViewPageEventArgs.cs
- IIS7WorkerRequest.cs
- ReliabilityContractAttribute.cs
- FixedFlowMap.cs
- WebPartRestoreVerb.cs
- ProvidersHelper.cs
- ParallelSeparator.xaml.cs
- IndentedTextWriter.cs
- WebPartMenuStyle.cs
- SmiEventSink_Default.cs
- EntitySqlQueryCacheEntry.cs
- HttpRawResponse.cs
- MembershipValidatePasswordEventArgs.cs
- SqlDataSourceFilteringEventArgs.cs
- ConfigurationSectionGroupCollection.cs
- XmlSchemaChoice.cs
- FtpCachePolicyElement.cs
- WsdlInspector.cs
- ListViewInsertEventArgs.cs
- WizardStepBase.cs
- WindowsTreeView.cs
- ListMarkerSourceInfo.cs
- UserUseLicenseDictionaryLoader.cs