Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / OleDb / OleDbErrorCollection.cs / 1305376 / OleDbErrorCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data.OleDb { using System; using System.ComponentModel; using System.Collections; using System.Data.Common; [Serializable, ListBindable(false)] public sealed class OleDbErrorCollection : System.Collections.ICollection { readonly private ArrayList items; // WebData 106655 internal OleDbErrorCollection(UnsafeNativeMethods.IErrorInfo errorInfo) { ArrayList items = new ArrayList(); Bid.Trace("IErrorRecords\n"); UnsafeNativeMethods.IErrorRecords errorRecords = (errorInfo as UnsafeNativeMethods.IErrorRecords); if (null != errorRecords) { int recordCount = errorRecords.GetRecordCount(); Bid.Trace(" RecordCount=%d\n", recordCount); for (int i = 0; i < recordCount; ++i) { OleDbError error = new OleDbError(errorRecords, i); items.Add(error); } } this.items = items; } bool System.Collections.ICollection.IsSynchronized { get { return false;} } object System.Collections.ICollection.SyncRoot { get { return this;} } public int Count { get { ArrayList items = this.items; return ((null != items) ? items.Count : 0); } } public OleDbError this[int index] { get { return (this.items[index] as OleDbError); } } internal void AddRange(ICollection c) { items.AddRange(c); } public void CopyTo(Array array, int index) { this.items.CopyTo(array, index); } public void CopyTo (OleDbError[] array, int index) { this.items.CopyTo(array, index); } public IEnumerator GetEnumerator() { return this.items.GetEnumerator(); } } } // 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
- RenderCapability.cs
- SelectedDatesCollection.cs
- Blend.cs
- WindowsSlider.cs
- MetabaseSettings.cs
- AuthenticatingEventArgs.cs
- SetterBaseCollection.cs
- CapabilitiesPattern.cs
- DataControlFieldHeaderCell.cs
- SharedPersonalizationStateInfo.cs
- MediaSystem.cs
- ActivationServices.cs
- DateTimeConverter2.cs
- DependencyObjectValidator.cs
- QilGenerator.cs
- ParameterEditorUserControl.cs
- FileDialogCustomPlace.cs
- WebServiceEnumData.cs
- ListArgumentProvider.cs
- XmlnsDictionary.cs
- DataGridLength.cs
- AncillaryOps.cs
- ExpressionBindingCollection.cs
- ForeignKeyFactory.cs
- EditCommandColumn.cs
- ServiceHostFactory.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- BitConverter.cs
- PersonalizationState.cs
- wgx_sdk_version.cs
- SolidColorBrush.cs
- WindowsGraphics2.cs
- RadioButton.cs
- PersistenceTypeAttribute.cs
- WorkflowApplication.cs
- SqlProfileProvider.cs
- PassportAuthentication.cs
- SystemSounds.cs
- RectangleGeometry.cs
- CommandArguments.cs
- GrabHandleGlyph.cs
- XmlHelper.cs
- DataIdProcessor.cs
- TdsParserHelperClasses.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- RunWorkerCompletedEventArgs.cs
- InternalDispatchObject.cs
- Expressions.cs
- Timer.cs
- TrimSurroundingWhitespaceAttribute.cs
- WebEvents.cs
- XMLSchema.cs
- HostingEnvironment.cs
- AdornerHitTestResult.cs
- SchemaMapping.cs
- SByte.cs
- ColumnBinding.cs
- OptimalTextSource.cs
- DateTimeConstantAttribute.cs
- XmlSiteMapProvider.cs
- ClaimTypes.cs
- ContentElementAutomationPeer.cs
- rsa.cs
- StructuredTypeEmitter.cs
- MonitoringDescriptionAttribute.cs
- ExecutionEngineException.cs
- WithParamAction.cs
- Timer.cs
- XPathMessageFilterElementCollection.cs
- Html32TextWriter.cs
- Control.cs
- safesecurityhelperavalon.cs
- HyperLinkDesigner.cs
- DelegateTypeInfo.cs
- CustomSignedXml.cs
- BindStream.cs
- WSSecurityPolicy.cs
- SqlCachedBuffer.cs
- WindowsUpDown.cs
- HttpConfigurationContext.cs
- DependencyPropertyKind.cs
- MessagePropertyVariants.cs
- ExternalFile.cs
- StdRegProviderWrapper.cs
- Calendar.cs
- MetafileHeader.cs
- milrender.cs
- DataGridViewCellEventArgs.cs
- DebugTracing.cs
- OrthographicCamera.cs
- ExpressionBindings.cs
- QilList.cs
- MasterPageBuildProvider.cs
- SkewTransform.cs
- ViewStateModeByIdAttribute.cs
- CheckBoxList.cs
- UnsafeNativeMethods.cs
- Empty.cs
- XPathScanner.cs
- Location.cs