Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- RadioButton.cs
- MonikerBuilder.cs
- CompileXomlTask.cs
- PasswordDeriveBytes.cs
- SoapAttributeOverrides.cs
- WindowsRegion.cs
- HandlerBase.cs
- PolyQuadraticBezierSegment.cs
- WebPartConnectionsConnectVerb.cs
- cookiecontainer.cs
- GcHandle.cs
- Function.cs
- webclient.cs
- SecurityHeaderElementInferenceEngine.cs
- DataGridViewTextBoxEditingControl.cs
- RadioButtonFlatAdapter.cs
- FormParameter.cs
- SettingsSavedEventArgs.cs
- TypeUtil.cs
- Int16Animation.cs
- BitmapScalingModeValidation.cs
- GACMembershipCondition.cs
- FontWeight.cs
- ProxyManager.cs
- FilePrompt.cs
- FixedTextSelectionProcessor.cs
- Drawing.cs
- Filter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ScrollProperties.cs
- SQLDoubleStorage.cs
- UpdatePanel.cs
- Bits.cs
- WebPartManagerInternals.cs
- SByteConverter.cs
- CodeIndexerExpression.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- RepeaterItemCollection.cs
- PageClientProxyGenerator.cs
- SessionPageStateSection.cs
- TextRangeEditTables.cs
- DataRecord.cs
- ContainerFilterService.cs
- PartitionedStream.cs
- AsnEncodedData.cs
- TypeSource.cs
- OutputCacheProfileCollection.cs
- DecoderBestFitFallback.cs
- glyphs.cs
- GetWinFXPath.cs
- ErrorFormatter.cs
- EncodingDataItem.cs
- SqlClientFactory.cs
- ToolboxBitmapAttribute.cs
- RegexCaptureCollection.cs
- XmlCustomFormatter.cs
- ValidationErrorEventArgs.cs
- DefaultValueConverter.cs
- EdmItemCollection.cs
- DependsOnAttribute.cs
- TabControlEvent.cs
- HttpCapabilitiesBase.cs
- CommandLibraryHelper.cs
- KeyEvent.cs
- OverloadGroupAttribute.cs
- AnnotationDocumentPaginator.cs
- EditorPart.cs
- MultiSelector.cs
- ProviderSettings.cs
- X509Extension.cs
- GroupBox.cs
- QuaternionIndependentAnimationStorage.cs
- AsymmetricKeyExchangeFormatter.cs
- PresentationTraceSources.cs
- ValueQuery.cs
- MobileControlsSectionHelper.cs
- BaseParagraph.cs
- DataColumnChangeEvent.cs
- OracleDateTime.cs
- ServicePoint.cs
- ColorTransformHelper.cs
- TextView.cs
- PropertyDescriptorCollection.cs
- GeometryGroup.cs
- DetailsViewUpdateEventArgs.cs
- MarshalDirectiveException.cs
- DebuggerAttributes.cs
- JsonMessageEncoderFactory.cs
- AtomEntry.cs
- ClassImporter.cs
- SHA256Managed.cs
- FocusManager.cs
- ToolStripHighContrastRenderer.cs
- EventLogEntry.cs
- DuplicateContext.cs
- DecimalConstantAttribute.cs
- TrackingMemoryStreamFactory.cs
- StringExpressionSet.cs
- KeyNotFoundException.cs
- FunctionUpdateCommand.cs