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
- CacheEntry.cs
- EdmRelationshipRoleAttribute.cs
- Logging.cs
- adornercollection.cs
- DebugHandleTracker.cs
- EntityDataSourceValidationException.cs
- LayeredChannelListener.cs
- TableColumn.cs
- Transform.cs
- SpellCheck.cs
- Timer.cs
- TextBlock.cs
- DesignTimeSiteMapProvider.cs
- PackageDigitalSignatureManager.cs
- BuildResult.cs
- ParallelActivityDesigner.cs
- OdbcHandle.cs
- CellTreeNode.cs
- ClusterUtils.cs
- DockPattern.cs
- CryptoApi.cs
- RegexCompilationInfo.cs
- StreamFormatter.cs
- XmlSchemaGroup.cs
- tooltip.cs
- XPathParser.cs
- ObjectDataSourceEventArgs.cs
- objectquery_tresulttype.cs
- Bold.cs
- Hash.cs
- sqlnorm.cs
- SqlVisitor.cs
- DataGridComboBoxColumn.cs
- TableDesigner.cs
- DefaultDiscoveryServiceExtension.cs
- PropertyDescriptorComparer.cs
- XmlCountingReader.cs
- AsyncStreamReader.cs
- CuspData.cs
- HandlerBase.cs
- XmlObjectSerializer.cs
- SliderAutomationPeer.cs
- ReadOnlyDataSource.cs
- Transactions.cs
- M3DUtil.cs
- DataGridViewDataConnection.cs
- ActivityStateQuery.cs
- hwndwrapper.cs
- BitmapImage.cs
- _ConnectionGroup.cs
- EventDescriptorCollection.cs
- PageAction.cs
- DynamicPropertyReader.cs
- ZipIOExtraFieldPaddingElement.cs
- SoundPlayer.cs
- OperationCanceledException.cs
- XmlReflectionMember.cs
- Directory.cs
- PerformanceCounter.cs
- TemplateXamlTreeBuilder.cs
- CalendarDesigner.cs
- XamlPoint3DCollectionSerializer.cs
- BuiltInExpr.cs
- KeyPressEvent.cs
- Application.cs
- TextDecorationCollectionConverter.cs
- XmlDownloadManager.cs
- MonitorWrapper.cs
- SendKeys.cs
- ItemType.cs
- LineVisual.cs
- WebPartTransformerAttribute.cs
- CachedPathData.cs
- DnsPermission.cs
- FilterEventArgs.cs
- AssociationEndMember.cs
- SqlTriggerAttribute.cs
- PipelineModuleStepContainer.cs
- ProviderException.cs
- GraphicsContainer.cs
- EventPropertyMap.cs
- validationstate.cs
- LinqExpressionNormalizer.cs
- AudioException.cs
- BamlResourceSerializer.cs
- ParameterReplacerVisitor.cs
- UpdatableGenericsFeature.cs
- SortFieldComparer.cs
- ValidatedControlConverter.cs
- DockProviderWrapper.cs
- ParentControlDesigner.cs
- WebPartsSection.cs
- PageStatePersister.cs
- AggregatePushdown.cs
- Image.cs
- Simplifier.cs
- ProfilePropertySettings.cs
- DictionaryTraceRecord.cs
- StackBuilderSink.cs
- PngBitmapDecoder.cs