Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Common / DbDataSourceEnumerator.cs / 1305376 / DbDataSourceEnumerator.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
// [....]
//-----------------------------------------------------------------------------
namespace System.Data.Common {
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Threading;
public abstract class DbDataSourceEnumerator { // V1.2.3300
protected DbDataSourceEnumerator() { // V1.2.3300
}
abstract public DataTable GetDataSources(); // V1.2.3300
/*
virtual public IAsyncResult BeginGetDataSources(AsyncCallback callback, object asyncStateObject) { // V1.2.3300
DbEnumSynchronousAsyncResult asyncResult = new DbEnumSynchronousAsyncResult(callback, asyncStateObject);
try {
asyncResult._dataTable = GetElements();
asyncResult.SetCompletedSynchronously();
}
catch(DataAdapterException e) {
ADP.TraceExceptionForCapture(e);
asyncResult.ExceptionObject = e;
}
if (null == asyncResult._dataTable) {
throw ADP.DataAdapter("no datatable");
}
if (null != callback) {
callback(asyncResult);
}
return asyncResult;
}
virtual public DataTable EndGetDataSources(IAsyncResult asyncResult) { // V1.2.3300
ADP.CheckArgumentNull(asyncResult, "asyncResult");
DbEnumSynchronousAsyncResult ar = (asyncResult as DbEnumSynchronousAsyncResult);
if (ar._endXxxCalled) {
throw ADP.InvalidOperation("EndGetElements called twice");
}
ar._endXxxCalled = true;
if (null != ar.ExceptionObject) {
throw ar.ExceptionObject;
}
return ar._dataTable;
}
sealed private class DbEnumSynchronousAsyncResult : DbAsyncResult {
internal bool _endXxxCalled;
internal DataTable _dataTable;
internal DbEnumSynchronousAsyncResult(AsyncCallback callback, Object asyncStateObject) : base(null, callback, asyncStateObject) {
}
}
*/
}
}
// 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
- DescendantBaseQuery.cs
- CacheForPrimitiveTypes.cs
- EntitySqlQueryState.cs
- ThemeDirectoryCompiler.cs
- TextBox.cs
- InvalidDataException.cs
- ReadOnlyDataSource.cs
- ComponentResourceKey.cs
- Parameter.cs
- NativeMethods.cs
- Double.cs
- InvokeBinder.cs
- SelectionPattern.cs
- MembershipPasswordException.cs
- PointCollection.cs
- ObjectDataSourceStatusEventArgs.cs
- StreamUpgradeBindingElement.cs
- DelegatedStream.cs
- DBCSCodePageEncoding.cs
- GenericAuthenticationEventArgs.cs
- PropertyNames.cs
- ScrollViewerAutomationPeer.cs
- PageContentCollection.cs
- Image.cs
- PasswordRecoveryDesigner.cs
- SqlDataRecord.cs
- WizardStepBase.cs
- FixedSOMTextRun.cs
- TypeDescriptionProviderAttribute.cs
- XPathNavigator.cs
- Logging.cs
- QueueProcessor.cs
- _HTTPDateParse.cs
- ListDictionaryInternal.cs
- DbMetaDataCollectionNames.cs
- prefixendpointaddressmessagefiltertable.cs
- ColumnHeaderConverter.cs
- ActiveXContainer.cs
- SapiRecoInterop.cs
- MissingMemberException.cs
- PenThread.cs
- MessageHeaders.cs
- Animatable.cs
- DataServiceEntityAttribute.cs
- InstanceLockLostException.cs
- HttpAsyncResult.cs
- BinaryQueryOperator.cs
- IntPtr.cs
- ResourceDescriptionAttribute.cs
- InputProviderSite.cs
- PropertyTab.cs
- DebugView.cs
- PrimitiveOperationFormatter.cs
- CodeVariableReferenceExpression.cs
- SqlCaseSimplifier.cs
- DocumentEventArgs.cs
- BooleanAnimationUsingKeyFrames.cs
- XmlElementAttribute.cs
- DelegatingHeader.cs
- InfoCardRSACryptoProvider.cs
- PropertyToken.cs
- AccessDataSourceWizardForm.cs
- PathFigureCollection.cs
- xdrvalidator.cs
- EdmTypeAttribute.cs
- SpotLight.cs
- CachedTypeface.cs
- oledbmetadatacolumnnames.cs
- Rotation3D.cs
- HtmlForm.cs
- WithStatement.cs
- ExpandSegment.cs
- DetailsViewUpdateEventArgs.cs
- CommentEmitter.cs
- SqlClientFactory.cs
- UnsafeNetInfoNativeMethods.cs
- PopOutPanel.cs
- SqlLiftWhereClauses.cs
- GridViewSelectEventArgs.cs
- ThicknessAnimationBase.cs
- Action.cs
- BuildDependencySet.cs
- DictionaryChange.cs
- DbConnectionFactory.cs
- DocumentGrid.cs
- WindowsListViewItemCheckBox.cs
- ImageBrush.cs
- DataGridViewCellPaintingEventArgs.cs
- PackageRelationshipCollection.cs
- MsmqUri.cs
- ISCIIEncoding.cs
- MessageQueue.cs
- Mapping.cs
- SByteConverter.cs
- EtwTrackingBehaviorElement.cs
- ResourceWriter.cs
- InheritanceRules.cs
- FileDialog_Vista.cs
- TextLineResult.cs
- ListViewItemMouseHoverEvent.cs