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
- XamlSerializerUtil.cs
- LookupNode.cs
- ExpandableObjectConverter.cs
- ControlIdConverter.cs
- WebColorConverter.cs
- _IPv4Address.cs
- UnsafeNativeMethods.cs
- SafeProcessHandle.cs
- EntityModelSchemaGenerator.cs
- ScriptingRoleServiceSection.cs
- ADRoleFactoryConfiguration.cs
- InArgument.cs
- SchemaTableColumn.cs
- documentsequencetextpointer.cs
- EndpointBehaviorElement.cs
- RulePatternOps.cs
- prefixendpointaddressmessagefilter.cs
- OpCopier.cs
- InstanceLockQueryResult.cs
- CorrelationService.cs
- SequenceDesignerAccessibleObject.cs
- x509store.cs
- InputScopeAttribute.cs
- Viewport2DVisual3D.cs
- Style.cs
- Attributes.cs
- UIElement.cs
- AxWrapperGen.cs
- COSERVERINFO.cs
- Substitution.cs
- FragmentQueryProcessor.cs
- FieldNameLookup.cs
- XmlSchemaValidator.cs
- HttpHandlerActionCollection.cs
- ItemContainerProviderWrapper.cs
- SafeUserTokenHandle.cs
- DataBindingList.cs
- CodeExporter.cs
- CacheVirtualItemsEvent.cs
- TemplateControlParser.cs
- FontCacheUtil.cs
- CodeGenHelper.cs
- HuffModule.cs
- FormViewDeletedEventArgs.cs
- Stylesheet.cs
- ChildrenQuery.cs
- ClientSettingsStore.cs
- WinCategoryAttribute.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- OleDbConnectionFactory.cs
- HttpApplicationStateWrapper.cs
- ConfigViewGenerator.cs
- ColorTransformHelper.cs
- BaseHashHelper.cs
- PackageDigitalSignatureManager.cs
- ArrayWithOffset.cs
- XmlCharType.cs
- SharedUtils.cs
- TypeDescriptionProvider.cs
- RuntimeHelpers.cs
- RegexCode.cs
- BindingNavigatorDesigner.cs
- HtmlProps.cs
- MissingMethodException.cs
- ResourceContainer.cs
- ContentDefinition.cs
- SystemIcons.cs
- UriSection.cs
- MessagePartSpecification.cs
- CodeCompiler.cs
- StringArrayConverter.cs
- OleDbError.cs
- RC2.cs
- FolderBrowserDialogDesigner.cs
- WarningException.cs
- SQLDecimal.cs
- StrongName.cs
- DeviceContext2.cs
- NGCPageContentSerializerAsync.cs
- DateTimeOffsetStorage.cs
- FilterInvalidBodyAccessException.cs
- PageAdapter.cs
- PageParserFilter.cs
- DataControlFieldCell.cs
- EventSource.cs
- TaskCanceledException.cs
- ReferentialConstraint.cs
- Utilities.cs
- TemplateContainer.cs
- OLEDB_Enum.cs
- DynamicEndpointElement.cs
- ServicePointManager.cs
- SiteMapSection.cs
- FigureParagraph.cs
- QueryCacheKey.cs
- IntSecurity.cs
- IgnoreFlushAndCloseStream.cs
- WebPartUserCapability.cs
- ReturnEventArgs.cs
- WindowPattern.cs