Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Data / System / Data / SqlClient / SqlInfoMessageEvent.cs / 1 / SqlInfoMessageEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data.SqlClient { using System; #if WINFSInternalOnly internal #else public #endif sealed class SqlInfoMessageEventArgs : System.EventArgs { private SqlException exception; internal SqlInfoMessageEventArgs(SqlException exception) { this.exception = exception; } public SqlErrorCollection Errors { get { return exception.Errors;} } /*virtual protected*/private bool ShouldSerializeErrors() { // MDAC 65548 return (null != exception) && (0 < exception.Errors.Count); } public string Message { // MDAC 68482 get { return exception.Message; } } public string Source { // MDAC 68482 get { return exception.Source;} } override public string ToString() { // MDAC 68482 return Message; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data.SqlClient { using System; #if WINFSInternalOnly internal #else public #endif sealed class SqlInfoMessageEventArgs : System.EventArgs { private SqlException exception; internal SqlInfoMessageEventArgs(SqlException exception) { this.exception = exception; } public SqlErrorCollection Errors { get { return exception.Errors;} } /*virtual protected*/private bool ShouldSerializeErrors() { // MDAC 65548 return (null != exception) && (0 < exception.Errors.Count); } public string Message { // MDAC 68482 get { return exception.Message; } } public string Source { // MDAC 68482 get { return exception.Source;} } override public string ToString() { // MDAC 68482 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
- Positioning.cs
- RIPEMD160Managed.cs
- ImageMapEventArgs.cs
- OleDbPermission.cs
- AuthenticationException.cs
- PersonalizableAttribute.cs
- ApplicationProxyInternal.cs
- HttpCapabilitiesSectionHandler.cs
- TabControlEvent.cs
- DriveNotFoundException.cs
- XmlSerializationGeneratedCode.cs
- ConfigurationManager.cs
- XPathNodeList.cs
- SimpleType.cs
- HighContrastHelper.cs
- ObjectQuery.cs
- TimeSpanSecondsConverter.cs
- CommonProperties.cs
- GridView.cs
- InternalTypeHelper.cs
- TokenFactoryBase.cs
- ResolveCriteria.cs
- LineServices.cs
- PriorityItem.cs
- EllipseGeometry.cs
- XmlParserContext.cs
- ErrorProvider.cs
- EncodingDataItem.cs
- ResourceReader.cs
- DataGridViewRowHeaderCell.cs
- InProcStateClientManager.cs
- DocumentAutomationPeer.cs
- IODescriptionAttribute.cs
- OleDbDataReader.cs
- ProtocolElement.cs
- UnknownWrapper.cs
- EnumUnknown.cs
- HostingEnvironmentSection.cs
- DataSourceControl.cs
- AuthStoreRoleProvider.cs
- DesignSurfaceEvent.cs
- SqlDataSourceStatusEventArgs.cs
- SqlInfoMessageEvent.cs
- Line.cs
- CredentialCache.cs
- SafeBitVector32.cs
- UnknownBitmapEncoder.cs
- ResourceAttributes.cs
- HtmlInputPassword.cs
- FontFamily.cs
- PeerNameResolver.cs
- XsdDataContractExporter.cs
- TraceContextEventArgs.cs
- SchemaImporterExtensionElementCollection.cs
- Int64KeyFrameCollection.cs
- XmlEntityReference.cs
- EmptyElement.cs
- NoClickablePointException.cs
- CommittableTransaction.cs
- StrokeRenderer.cs
- GridViewSelectEventArgs.cs
- FixedSOMPageElement.cs
- OleStrCAMarshaler.cs
- ToolStripInSituService.cs
- ImageFormatConverter.cs
- FileInfo.cs
- TextCompositionManager.cs
- Utilities.cs
- ReliabilityContractAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- SafeUserTokenHandle.cs
- Memoizer.cs
- LayoutManager.cs
- CatalogZoneBase.cs
- DataKeyArray.cs
- PageVisual.cs
- PackageController.cs
- SpellerHighlightLayer.cs
- ClickablePoint.cs
- DataGridViewRowPostPaintEventArgs.cs
- ChildTable.cs
- Compiler.cs
- ListItemCollection.cs
- ReadOnlyDataSourceView.cs
- SelectionUIService.cs
- SafeEventLogWriteHandle.cs
- Rotation3DAnimation.cs
- UseLicense.cs
- COM2ComponentEditor.cs
- DecodeHelper.cs
- TableItemProviderWrapper.cs
- DataContractSerializerOperationFormatter.cs
- WindowsMenu.cs
- Command.cs
- WsiProfilesElementCollection.cs
- SqlMethodTransformer.cs
- TryCatchDesigner.xaml.cs
- MobileControl.cs
- ArrangedElementCollection.cs
- RecordConverter.cs