Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataView.cs
- ValuePattern.cs
- ContentControl.cs
- FacetValueContainer.cs
- ToolTipAutomationPeer.cs
- PersonalizationStateQuery.cs
- ConfigXmlWhitespace.cs
- ToolZone.cs
- InteropBitmapSource.cs
- DictionaryTraceRecord.cs
- Automation.cs
- TypeNameConverter.cs
- GcSettings.cs
- AsyncCompletedEventArgs.cs
- HelpProvider.cs
- RuntimeTrackingProfile.cs
- FrameAutomationPeer.cs
- UnsafeNativeMethods.cs
- RelatedImageListAttribute.cs
- IgnoreFlushAndCloseStream.cs
- TreeNodeBinding.cs
- Int16Converter.cs
- SymDocumentType.cs
- SocketAddress.cs
- TaskbarItemInfo.cs
- ChildDocumentBlock.cs
- MetafileHeaderWmf.cs
- ParameterToken.cs
- RadioButton.cs
- RoleServiceManager.cs
- PathTooLongException.cs
- EndpointInfo.cs
- LinkButton.cs
- ApplicationTrust.cs
- CodeSubDirectory.cs
- ToolStripLabel.cs
- StorageComplexTypeMapping.cs
- UriTemplate.cs
- ToolStripPanel.cs
- CngAlgorithmGroup.cs
- ComplusEndpointConfigContainer.cs
- SpecialNameAttribute.cs
- WindowPatternIdentifiers.cs
- RequiredArgumentAttribute.cs
- DrawingGroup.cs
- XmlComplianceUtil.cs
- DataGridViewLinkCell.cs
- SvcMapFileLoader.cs
- DynamicRendererThreadManager.cs
- TabletDeviceInfo.cs
- MenuItemBindingCollection.cs
- RoutedEventValueSerializer.cs
- Utility.cs
- ProjectionCamera.cs
- XhtmlTextWriter.cs
- ViewCellSlot.cs
- StateWorkerRequest.cs
- FileDialogPermission.cs
- ping.cs
- MenuItemBinding.cs
- PageSettings.cs
- ReferencedType.cs
- Tuple.cs
- SqlDelegatedTransaction.cs
- ZipFileInfoCollection.cs
- DataGridCellsPresenter.cs
- PairComparer.cs
- UInt64.cs
- SqlFacetAttribute.cs
- TemplatedWizardStep.cs
- DataObjectMethodAttribute.cs
- xmlglyphRunInfo.cs
- BaseEntityWrapper.cs
- ServiceHttpModule.cs
- ToolStripMenuItem.cs
- ToolStripProgressBar.cs
- DataRowChangeEvent.cs
- SplitterCancelEvent.cs
- TypeDescriptionProviderAttribute.cs
- ReadOnlyObservableCollection.cs
- CurrencyManager.cs
- ToolStripDesignerAvailabilityAttribute.cs
- TreeNodeStyleCollection.cs
- HttpStreamFormatter.cs
- ImageMap.cs
- KoreanCalendar.cs
- RegionIterator.cs
- PerfCounters.cs
- RectKeyFrameCollection.cs
- ExpressionPrefixAttribute.cs
- Bidi.cs
- ProfilePropertySettings.cs
- SqlLiftWhereClauses.cs
- XmlValueConverter.cs
- metrodevice.cs
- listitem.cs
- DependencyPropertyValueSerializer.cs
- MetadataItemSerializer.cs
- DataControlCommands.cs
- TextSerializer.cs