Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Data / System / Data / Odbc / OdbcInfoMessageEvent.cs / 1 / OdbcInfoMessageEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; using System.Text; namespace System.Data.Odbc { #if WINFSInternalOnly internal #else public #endif delegate void OdbcInfoMessageEventHandler(object sender, OdbcInfoMessageEventArgs e); #if WINFSInternalOnly internal #else public #endif sealed class OdbcInfoMessageEventArgs : System.EventArgs { private OdbcErrorCollection _errors; internal OdbcInfoMessageEventArgs(OdbcErrorCollection errors) { _errors = errors; } public OdbcErrorCollection Errors { get { return _errors; } } public string Message { // MDAC 84407 get { StringBuilder builder = new StringBuilder(); foreach(OdbcError error in Errors) { if (0 < builder.Length) { builder.Append(Environment.NewLine); } builder.Append(error.Message); } return builder.ToString(); } } public override string ToString() { // MDAC 84407 return Message; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; using System.Text; namespace System.Data.Odbc { #if WINFSInternalOnly internal #else public #endif delegate void OdbcInfoMessageEventHandler(object sender, OdbcInfoMessageEventArgs e); #if WINFSInternalOnly internal #else public #endif sealed class OdbcInfoMessageEventArgs : System.EventArgs { private OdbcErrorCollection _errors; internal OdbcInfoMessageEventArgs(OdbcErrorCollection errors) { _errors = errors; } public OdbcErrorCollection Errors { get { return _errors; } } public string Message { // MDAC 84407 get { StringBuilder builder = new StringBuilder(); foreach(OdbcError error in Errors) { if (0 < builder.Length) { builder.Append(Environment.NewLine); } builder.Append(error.Message); } return builder.ToString(); } } public override string ToString() { // MDAC 84407 return Message; } } } // 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
- webeventbuffer.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- StatusBarPanelClickEvent.cs
- IteratorDescriptor.cs
- WebPartEditorOkVerb.cs
- FaultHandlingFilter.cs
- CounterCreationDataConverter.cs
- AnnotationHelper.cs
- ISO2022Encoding.cs
- OnOperation.cs
- TextBreakpoint.cs
- TextEditorMouse.cs
- FrameworkElement.cs
- PersonalizationProviderHelper.cs
- HandlerFactoryWrapper.cs
- QuaternionConverter.cs
- GenericAuthenticationEventArgs.cs
- XmlMtomReader.cs
- ValidationHelpers.cs
- PropertyTabChangedEvent.cs
- ResourceContainer.cs
- FormattedTextSymbols.cs
- ProfessionalColorTable.cs
- StructuralComparisons.cs
- FieldMetadata.cs
- InitializationEventAttribute.cs
- CombinedGeometry.cs
- Select.cs
- NavigationProperty.cs
- GridViewPageEventArgs.cs
- CommentEmitter.cs
- BitmapEncoder.cs
- DataGridViewComboBoxColumnDesigner.cs
- DataControlField.cs
- OletxCommittableTransaction.cs
- IISMapPath.cs
- EncodingDataItem.cs
- AuthenticationService.cs
- ScaleTransform3D.cs
- EntityDataSource.cs
- NameValueFileSectionHandler.cs
- UnsafeNativeMethods.cs
- HtmlInputButton.cs
- UniqueConstraint.cs
- CodeSubDirectoriesCollection.cs
- FixedPage.cs
- WebProxyScriptElement.cs
- WindowsListViewItemStartMenu.cs
- PasswordPropertyTextAttribute.cs
- MobileTemplatedControlDesigner.cs
- WebPartConnectionCollection.cs
- ItemList.cs
- LayoutSettings.cs
- StringDictionaryWithComparer.cs
- WebServicesInteroperability.cs
- QueryConverter.cs
- ServiceOperationWrapper.cs
- AttachedPropertyMethodSelector.cs
- MsmqIntegrationProcessProtocolHandler.cs
- WebPartTracker.cs
- TargetException.cs
- ExecutedRoutedEventArgs.cs
- ModifiableIteratorCollection.cs
- OdbcParameter.cs
- Int64Animation.cs
- StatusBarAutomationPeer.cs
- CommandHelper.cs
- HttpRequestTraceRecord.cs
- ErrorTolerantObjectWriter.cs
- StringUtil.cs
- TypedRowGenerator.cs
- DecoderReplacementFallback.cs
- FileClassifier.cs
- IntSecurity.cs
- WebPartTransformerCollection.cs
- Int32EqualityComparer.cs
- MatrixTransform.cs
- HandleCollector.cs
- DBBindings.cs
- ScrollableControl.cs
- RenderCapability.cs
- FlowLayout.cs
- DesignOnlyAttribute.cs
- XmlTextReaderImpl.cs
- ObjectDataSourceDisposingEventArgs.cs
- PointAnimation.cs
- RichListBox.cs
- LZCodec.cs
- TagPrefixAttribute.cs
- Vector3DCollection.cs
- InstallerTypeAttribute.cs
- SessionState.cs
- RadioButtonList.cs
- BamlStream.cs
- HttpHandler.cs
- WinFormsComponentEditor.cs
- DynamicDataResources.Designer.cs
- MaxValueConverter.cs
- TableParagraph.cs
- SafeBitVector32.cs