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
- followingquery.cs
- StylusPointCollection.cs
- DesignTimeTemplateParser.cs
- ExceptionUtil.cs
- AdRotator.cs
- TextFormatterImp.cs
- AmbientValueAttribute.cs
- AnchoredBlock.cs
- EntityClientCacheEntry.cs
- XmlNotation.cs
- AutomationEvent.cs
- XmlSecureResolver.cs
- CheckBoxField.cs
- Separator.cs
- Walker.cs
- _NetworkingPerfCounters.cs
- RtfControls.cs
- DataControlImageButton.cs
- PlainXmlSerializer.cs
- JsonFormatGeneratorStatics.cs
- ConnectionManagementElement.cs
- MLangCodePageEncoding.cs
- Line.cs
- EqualityComparer.cs
- BaseProcessor.cs
- Pen.cs
- AtomMaterializerLog.cs
- NumberFormatter.cs
- ObfuscationAttribute.cs
- BeginStoryboard.cs
- MobileResource.cs
- While.cs
- SoapAttributeOverrides.cs
- FormCollection.cs
- InvalidOleVariantTypeException.cs
- InfocardExtendedInformationCollection.cs
- SymbolResolver.cs
- GiveFeedbackEventArgs.cs
- BaseCollection.cs
- HostProtectionException.cs
- CaseInsensitiveHashCodeProvider.cs
- TableStyle.cs
- XamlToRtfWriter.cs
- ProtocolsSection.cs
- DescendantQuery.cs
- Collection.cs
- TreeChangeInfo.cs
- OdbcFactory.cs
- WindowsListViewGroupSubsetLink.cs
- LocalizableResourceBuilder.cs
- DesignerTextWriter.cs
- StringToken.cs
- WorkflowHostingEndpoint.cs
- CategoryGridEntry.cs
- BreadCrumbTextConverter.cs
- WindowsFont.cs
- MULTI_QI.cs
- ThemeDirectoryCompiler.cs
- DbSetClause.cs
- SafePEFileHandle.cs
- LiteralControl.cs
- WebPartZoneBase.cs
- BuildProvidersCompiler.cs
- LogicalExpr.cs
- XmlSchemaChoice.cs
- CompilerParameters.cs
- LockingPersistenceProvider.cs
- XmlValueConverter.cs
- ApplicationHost.cs
- RegistryConfigurationProvider.cs
- WsdlInspector.cs
- ErrorHandlerFaultInfo.cs
- KnownTypeHelper.cs
- DbExpressionRules.cs
- ProfilePropertyNameValidator.cs
- FieldToken.cs
- MessageVersionConverter.cs
- FormatException.cs
- PolicyStatement.cs
- CriticalFinalizerObject.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- GPStream.cs
- BitmapEffectInput.cs
- ChannelTraceRecord.cs
- CodeActivityContext.cs
- ThemeDirectoryCompiler.cs
- CommonBehaviorsSection.cs
- ClockGroup.cs
- DataPointer.cs
- TdsRecordBufferSetter.cs
- MemberHolder.cs
- SiteMembershipCondition.cs
- Solver.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- AsyncSerializedWorker.cs
- Expander.cs
- EntityDataSourceSelectingEventArgs.cs
- ToolStripDropDownItemDesigner.cs
- Stack.cs
- HeaderLabel.cs