Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- QfeChecker.cs
- WriteTimeStream.cs
- InternalSafeNativeMethods.cs
- LinqDataSourceInsertEventArgs.cs
- SrgsGrammarCompiler.cs
- CodeExporter.cs
- Version.cs
- OfTypeExpression.cs
- TextTreePropertyUndoUnit.cs
- EncryptedHeaderXml.cs
- PageTheme.cs
- AppDomainGrammarProxy.cs
- WindowsPen.cs
- ValueSerializerAttribute.cs
- GridView.cs
- ResolveDuplex11AsyncResult.cs
- ISFTagAndGuidCache.cs
- activationcontext.cs
- HttpListenerException.cs
- PackWebRequest.cs
- WebPartConnectionsCancelVerb.cs
- XmlSerializationReader.cs
- FieldNameLookup.cs
- CellParaClient.cs
- WindowsListViewItemStartMenu.cs
- ProgressBar.cs
- ProcessHostServerConfig.cs
- ReadOnlyDictionary.cs
- ConnectAlgorithms.cs
- TriggerBase.cs
- InfoCardHelper.cs
- ListViewUpdateEventArgs.cs
- VisualCollection.cs
- TdsParserHelperClasses.cs
- EndPoint.cs
- UniqueTransportManagerRegistration.cs
- SymbolMethod.cs
- GB18030Encoding.cs
- TransformCollection.cs
- StringUtil.cs
- DefaultValueMapping.cs
- PathFigure.cs
- ProxyWebPartConnectionCollection.cs
- ToolBarOverflowPanel.cs
- CollectionChange.cs
- CheckStoreFileValidityRequest.cs
- WindowHelperService.cs
- LoginUtil.cs
- InvokePatternIdentifiers.cs
- DuplexChannel.cs
- SqlMethodCallConverter.cs
- CollectionMarkupSerializer.cs
- JobDuplex.cs
- LocalBuilder.cs
- Atom10FormatterFactory.cs
- NegotiateStream.cs
- HttpServerUtilityBase.cs
- SqlConnectionPoolProviderInfo.cs
- EtwTrackingBehavior.cs
- ByteStorage.cs
- GeometryModel3D.cs
- MetabaseServerConfig.cs
- XmlBinaryReader.cs
- KeyInstance.cs
- WebSysDescriptionAttribute.cs
- PngBitmapEncoder.cs
- ProfileService.cs
- TagElement.cs
- DuplicateWaitObjectException.cs
- DynamicFilter.cs
- GridItemProviderWrapper.cs
- DelimitedListTraceListener.cs
- HostExecutionContextManager.cs
- MetabaseServerConfig.cs
- VirtualStackFrame.cs
- FormViewDeletedEventArgs.cs
- RemotingAttributes.cs
- PeerSecurityManager.cs
- OdbcRowUpdatingEvent.cs
- FragmentNavigationEventArgs.cs
- UriWriter.cs
- DesignTimeTemplateParser.cs
- ListBindingConverter.cs
- SimpleBitVector32.cs
- PartialCachingAttribute.cs
- WindowsFormsSectionHandler.cs
- ReferencedType.cs
- NativeMethods.cs
- AttributeCollection.cs
- EncoderExceptionFallback.cs
- SqlPersonalizationProvider.cs
- PluralizationServiceUtil.cs
- XmlChoiceIdentifierAttribute.cs
- RootDesignerSerializerAttribute.cs
- PropertyGridCommands.cs
- TargetFrameworkUtil.cs
- VectorAnimation.cs
- BuildDependencySet.cs
- RadioButton.cs
- XslCompiledTransform.cs