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
- ColorTransformHelper.cs
- EntityKey.cs
- SqlDataSourceSelectingEventArgs.cs
- AsyncOperation.cs
- ImageAnimator.cs
- IntPtr.cs
- Dump.cs
- RuntimeConfig.cs
- FontFamilyConverter.cs
- XmlReflectionImporter.cs
- SubtreeProcessor.cs
- RegisteredArrayDeclaration.cs
- BitmapFrameDecode.cs
- HuffCodec.cs
- Vector3DAnimationBase.cs
- PriorityItem.cs
- DateBoldEvent.cs
- DispatcherFrame.cs
- ObjectAssociationEndMapping.cs
- FunctionDetailsReader.cs
- WebPartCatalogCloseVerb.cs
- FrugalMap.cs
- MetadataArtifactLoader.cs
- SafeFileMappingHandle.cs
- PersianCalendar.cs
- XhtmlBasicPanelAdapter.cs
- Rect.cs
- GridView.cs
- HelpFileFileNameEditor.cs
- InternalPermissions.cs
- TextSelection.cs
- validationstate.cs
- XmlSchemas.cs
- Point3DKeyFrameCollection.cs
- DataGridViewCellStateChangedEventArgs.cs
- XmlSchemaDocumentation.cs
- WindowsPen.cs
- EventLogEntryCollection.cs
- categoryentry.cs
- Permission.cs
- SqlCharStream.cs
- _SSPISessionCache.cs
- TransactionScope.cs
- Gdiplus.cs
- XmlSerializationGeneratedCode.cs
- FacetDescription.cs
- BuilderPropertyEntry.cs
- Line.cs
- TreeWalker.cs
- BrushValueSerializer.cs
- StringCollection.cs
- FilteredReadOnlyMetadataCollection.cs
- DataTableTypeConverter.cs
- OperationAbortedException.cs
- DragCompletedEventArgs.cs
- RelationshipManager.cs
- ArrayWithOffset.cs
- Stackframe.cs
- TreeNode.cs
- XDRSchema.cs
- WebControlsSection.cs
- InputLanguageManager.cs
- TextEvent.cs
- ConditionCollection.cs
- InArgumentConverter.cs
- BrowserCapabilitiesCompiler.cs
- DesignerActionTextItem.cs
- ViewBox.cs
- EventRouteFactory.cs
- ActivityTypeResolver.xaml.cs
- SortedList.cs
- XmlNodeReader.cs
- NavigatingCancelEventArgs.cs
- PrintPreviewDialog.cs
- AdornerLayer.cs
- SkipQueryOptionExpression.cs
- MemberInitExpression.cs
- ContentElementCollection.cs
- DataServiceEntityAttribute.cs
- RequestCache.cs
- TreeViewItemAutomationPeer.cs
- NotifyInputEventArgs.cs
- ControlPager.cs
- SerializationAttributes.cs
- TransactionState.cs
- ListDataHelper.cs
- UIElementHelper.cs
- ServerValidateEventArgs.cs
- LinkLabelLinkClickedEvent.cs
- LocalBuilder.cs
- FixedHyperLink.cs
- UnsafeNativeMethodsCLR.cs
- SqlClientPermission.cs
- XmlValidatingReaderImpl.cs
- Mappings.cs
- BrowserCapabilitiesFactoryBase.cs
- EntitySqlQueryCacheKey.cs
- SettingsSavedEventArgs.cs
- HeaderedItemsControl.cs
- UpdateProgress.cs