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
- CompoundFileIOPermission.cs
- SHA384Managed.cs
- DataComponentGenerator.cs
- FixUp.cs
- WebPartTransformerAttribute.cs
- RegionIterator.cs
- MobileUserControlDesigner.cs
- DayRenderEvent.cs
- MexNamedPipeBindingCollectionElement.cs
- Attributes.cs
- Nullable.cs
- SiteMembershipCondition.cs
- TreeWalker.cs
- DateTimeOffsetStorage.cs
- Int32CAMarshaler.cs
- RadioButtonList.cs
- AsyncOperationManager.cs
- SwitchCase.cs
- ContextQuery.cs
- SubqueryTrackingVisitor.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- ZipIOLocalFileBlock.cs
- ProbeRequestResponseAsyncResult.cs
- DbParameterCollection.cs
- GridViewColumnCollectionChangedEventArgs.cs
- HttpHandlerAction.cs
- AsymmetricSignatureFormatter.cs
- OptionUsage.cs
- Vector3DCollection.cs
- DbCommandTree.cs
- ImageListUtils.cs
- Solver.cs
- OperationCanceledException.cs
- Html32TextWriter.cs
- DocumentOrderComparer.cs
- DeclarativeCatalogPartDesigner.cs
- FontCacheLogic.cs
- DataPager.cs
- FolderNameEditor.cs
- QueryStringParameter.cs
- ClientRoleProvider.cs
- SQLDouble.cs
- ProcessHost.cs
- IPAddressCollection.cs
- SourceCollection.cs
- InvalidComObjectException.cs
- Button.cs
- BitmapEffectRenderDataResource.cs
- TickBar.cs
- FunctionQuery.cs
- SecurityRuntime.cs
- TypeLibConverter.cs
- oledbconnectionstring.cs
- ConfigurationStrings.cs
- GridViewRow.cs
- ObjectStateFormatter.cs
- SqlGenerator.cs
- SizeLimitedCache.cs
- BoundPropertyEntry.cs
- CreateSequence.cs
- FrameworkRichTextComposition.cs
- RegistryPermission.cs
- CallSiteOps.cs
- SqlDuplicator.cs
- InternalPolicyElement.cs
- LinkLabel.cs
- SelectionWordBreaker.cs
- SharedUtils.cs
- HtmlInputSubmit.cs
- PathSegmentCollection.cs
- ByteKeyFrameCollection.cs
- InputLangChangeRequestEvent.cs
- MobileCategoryAttribute.cs
- cache.cs
- OleDbWrapper.cs
- RelationshipFixer.cs
- brushes.cs
- ScrollEventArgs.cs
- StrokeCollection.cs
- AccessibleObject.cs
- FileDetails.cs
- HttpConfigurationSystem.cs
- Binding.cs
- IItemContainerGenerator.cs
- XmlSchemaValidator.cs
- RelationshipDetailsRow.cs
- SoapAttributes.cs
- CharKeyFrameCollection.cs
- SiteMapNodeItem.cs
- CmsUtils.cs
- DataSourceXmlClassAttribute.cs
- DataTableTypeConverter.cs
- XamlBrushSerializer.cs
- OdbcCommand.cs
- SafeSecurityHelper.cs
- BinaryOperationBinder.cs
- SystemWebSectionGroup.cs
- KeyTimeConverter.cs
- CodeMemberEvent.cs
- HttpResponse.cs