Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Odbc / OdbcInfoMessageEvent.cs / 1305376 / OdbcInfoMessageEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; using System.Text; namespace System.Data.Odbc { public delegate void OdbcInfoMessageEventHandler(object sender, OdbcInfoMessageEventArgs e); public 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
- BaseTreeIterator.cs
- Not.cs
- DbConnectionPoolIdentity.cs
- PrinterUnitConvert.cs
- RuntimeResourceSet.cs
- SmtpNetworkElement.cs
- EventLog.cs
- DSGeneratorProblem.cs
- CalendarTable.cs
- GridViewRow.cs
- xmlglyphRunInfo.cs
- GiveFeedbackEventArgs.cs
- AutomationIdentifier.cs
- CrossAppDomainChannel.cs
- DynamicEndpointElement.cs
- SafeMILHandle.cs
- COM2Properties.cs
- CollectionViewGroupRoot.cs
- PackageStore.cs
- ProtocolViolationException.cs
- PropertyTab.cs
- SrgsRulesCollection.cs
- Message.cs
- JournalEntryStack.cs
- QilFactory.cs
- Thread.cs
- WebPartEditorOkVerb.cs
- LocationChangedEventArgs.cs
- ListChangedEventArgs.cs
- MexTcpBindingCollectionElement.cs
- ObjectDataProvider.cs
- DoubleAnimation.cs
- MetadataArtifactLoaderComposite.cs
- Transform3DCollection.cs
- XmlArrayItemAttribute.cs
- BuilderPropertyEntry.cs
- RemotingSurrogateSelector.cs
- SafeArrayTypeMismatchException.cs
- SmtpException.cs
- Encoder.cs
- HMACSHA512.cs
- DiagnosticTrace.cs
- ActiveDocumentEvent.cs
- WebResourceAttribute.cs
- UserMapPath.cs
- CaseExpr.cs
- MimeXmlImporter.cs
- CodeGenerator.cs
- CompModSwitches.cs
- RtfToXamlLexer.cs
- ListBindableAttribute.cs
- AutomationProperties.cs
- ScriptingProfileServiceSection.cs
- OleDbMetaDataFactory.cs
- LineGeometry.cs
- ContentType.cs
- TextSimpleMarkerProperties.cs
- FilteredAttributeCollection.cs
- EditorPartDesigner.cs
- BaseDataBoundControl.cs
- ipaddressinformationcollection.cs
- StyleXamlParser.cs
- SpecialTypeDataContract.cs
- DeferredTextReference.cs
- MetaChildrenColumn.cs
- SmiEventSink_Default.cs
- Accessible.cs
- XmlnsDictionary.cs
- ExceptQueryOperator.cs
- DataGridViewElement.cs
- ArgumentDesigner.xaml.cs
- NativeMethods.cs
- Freezable.cs
- OdbcFactory.cs
- InputReportEventArgs.cs
- CaseInsensitiveComparer.cs
- ReaderContextStackData.cs
- Int16KeyFrameCollection.cs
- XsdCachingReader.cs
- sqlnorm.cs
- RedistVersionInfo.cs
- SmtpFailedRecipientsException.cs
- ItemMap.cs
- ConfigurationLockCollection.cs
- IteratorFilter.cs
- IImplicitResourceProvider.cs
- UpdatePanelTrigger.cs
- ScriptDescriptor.cs
- FreezableDefaultValueFactory.cs
- RoleServiceManager.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- IsolationInterop.cs
- InterleavedZipPartStream.cs
- DataGridViewColumnCollection.cs
- ISessionStateStore.cs
- WindowsFormsLinkLabel.cs
- ViewService.cs
- DeclarationUpdate.cs
- EntityParameter.cs
- DefaultWorkflowSchedulerService.cs