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
- ConfigDefinitionUpdates.cs
- BoolExpressionVisitors.cs
- WebPartDisplayModeCollection.cs
- PostBackTrigger.cs
- AttachmentCollection.cs
- UserControl.cs
- Image.cs
- XmlSchemaElement.cs
- DrawToolTipEventArgs.cs
- TableFieldsEditor.cs
- TextRange.cs
- CookieProtection.cs
- NonBatchDirectoryCompiler.cs
- WindowsHyperlink.cs
- PointAnimation.cs
- ActivityScheduledRecord.cs
- StatusBar.cs
- Decimal.cs
- CodeExpressionRuleDeclaration.cs
- Int16KeyFrameCollection.cs
- ToolBar.cs
- CapabilitiesState.cs
- ComponentResourceManager.cs
- HTMLTagNameToTypeMapper.cs
- WhitespaceRuleReader.cs
- FacetChecker.cs
- Journaling.cs
- MethodMessage.cs
- MimeObjectFactory.cs
- DataGridPagerStyle.cs
- ToolboxItemAttribute.cs
- XPathItem.cs
- VirtualizedCellInfoCollection.cs
- TextRunProperties.cs
- ObjectHelper.cs
- GetIndexBinder.cs
- AssemblySettingAttributes.cs
- XmlStreamStore.cs
- HtmlControl.cs
- PageRanges.cs
- BinHexEncoder.cs
- RelatedImageListAttribute.cs
- Baml6Assembly.cs
- RequiredFieldValidator.cs
- DataGridViewRowEventArgs.cs
- CustomLineCap.cs
- Visitors.cs
- ActivityBuilder.cs
- ValueQuery.cs
- ECDsaCng.cs
- HttpCookie.cs
- PersistenceTypeAttribute.cs
- MatcherBuilder.cs
- LOSFormatter.cs
- UnicastIPAddressInformationCollection.cs
- WebPartEditVerb.cs
- ToolboxComponentsCreatingEventArgs.cs
- Msec.cs
- Misc.cs
- FormatConvertedBitmap.cs
- CharEntityEncoderFallback.cs
- WindowsBrush.cs
- SchemaAttDef.cs
- DataGridViewCellCancelEventArgs.cs
- DefaultCommandExtensionCallback.cs
- InstancePersistenceCommandException.cs
- GridView.cs
- DebugInfoExpression.cs
- MessageQueuePermissionEntryCollection.cs
- ObjectDataSource.cs
- SessionStateItemCollection.cs
- XmlTypeMapping.cs
- ReaderWriterLock.cs
- Figure.cs
- InternalUserCancelledException.cs
- State.cs
- PackageFilter.cs
- XsdBuildProvider.cs
- Win32KeyboardDevice.cs
- SizeF.cs
- FilterException.cs
- ValidatingReaderNodeData.cs
- Material.cs
- ListViewAutomationPeer.cs
- FixedSOMTable.cs
- PlanCompilerUtil.cs
- BindingListCollectionView.cs
- RecordConverter.cs
- BaseParagraph.cs
- _TLSstream.cs
- ThemeDictionaryExtension.cs
- WorkflowRuntimeSection.cs
- IconBitmapDecoder.cs
- PixelFormatConverter.cs
- ContextStaticAttribute.cs
- WebPartTransformerAttribute.cs
- Permission.cs
- ProfileServiceManager.cs
- UnsafeNativeMethods.cs
- DurableInstancingOptions.cs