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
- StreamDocument.cs
- Matrix3DValueSerializer.cs
- GeometryHitTestParameters.cs
- DynamicActionMessageFilter.cs
- XmlDomTextWriter.cs
- DBPropSet.cs
- ImpersonationContext.cs
- TypeConverterValueSerializer.cs
- documentsequencetextview.cs
- RoleProviderPrincipal.cs
- Cursors.cs
- HierarchicalDataSourceControl.cs
- MessageHeaderInfoTraceRecord.cs
- ButtonChrome.cs
- UriTemplate.cs
- XDRSchema.cs
- CorrelationService.cs
- Int16KeyFrameCollection.cs
- NullableIntAverageAggregationOperator.cs
- SmiEventSink.cs
- FillBehavior.cs
- ResourcePermissionBaseEntry.cs
- AnonymousIdentificationSection.cs
- SqlServices.cs
- UdpSocketReceiveManager.cs
- WindowsAuthenticationModule.cs
- dbdatarecord.cs
- SymDocumentType.cs
- DbCommandDefinition.cs
- XmlIterators.cs
- SurrogateSelector.cs
- WebConfigurationManager.cs
- LinkLabelLinkClickedEvent.cs
- WindowsMenu.cs
- DispatchWrapper.cs
- XamlTypeMapper.cs
- Membership.cs
- ToolStripRenderEventArgs.cs
- DrawingServices.cs
- StringToken.cs
- DataBindingHandlerAttribute.cs
- SqlCacheDependencyDatabase.cs
- Control.cs
- MsmqIntegrationSecurity.cs
- PhysicalAddress.cs
- DataRelationCollection.cs
- ConfigXmlElement.cs
- SharedPerformanceCounter.cs
- HtmlInputControl.cs
- XPathChildIterator.cs
- Header.cs
- RestHandler.cs
- ProgressChangedEventArgs.cs
- KeyToListMap.cs
- ListBindingConverter.cs
- GB18030Encoding.cs
- TextCompositionEventArgs.cs
- HttpWriter.cs
- NetPeerTcpBindingElement.cs
- XmlSerializerAssemblyAttribute.cs
- WebPartTransformer.cs
- SettingsPropertyValueCollection.cs
- SqlError.cs
- Pen.cs
- TextFormatter.cs
- _NestedMultipleAsyncResult.cs
- SizeValueSerializer.cs
- Parameter.cs
- SvcMapFileSerializer.cs
- ConfigurationSectionGroup.cs
- XmlText.cs
- MessageAction.cs
- MediaScriptCommandRoutedEventArgs.cs
- Byte.cs
- AggregateNode.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- GlyphCache.cs
- PictureBox.cs
- VBIdentifierDesigner.xaml.cs
- Visitor.cs
- SystemUdpStatistics.cs
- ConnectionsZoneDesigner.cs
- UnhandledExceptionEventArgs.cs
- BitVector32.cs
- CommandLibraryHelper.cs
- TypefaceMap.cs
- KnownTypesHelper.cs
- RawTextInputReport.cs
- TableDetailsCollection.cs
- RuleInfoComparer.cs
- CodeStatement.cs
- InstalledVoice.cs
- DataRowChangeEvent.cs
- ResourceDictionaryCollection.cs
- Panel.cs
- InvalidCastException.cs
- ServerValidateEventArgs.cs
- TextViewBase.cs
- HasCopySemanticsAttribute.cs
- XmlQualifiedNameTest.cs