Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SiteMapPath.cs
- Viewport3DAutomationPeer.cs
- DataFormat.cs
- TabControlDesigner.cs
- CacheVirtualItemsEvent.cs
- PolicyLevel.cs
- CompoundFileStreamReference.cs
- DetailsViewPageEventArgs.cs
- FormatterConverter.cs
- ConfigXmlText.cs
- CheckBoxStandardAdapter.cs
- PrincipalPermission.cs
- StringToken.cs
- Token.cs
- ImplicitInputBrush.cs
- CompositeScriptReference.cs
- CustomTypeDescriptor.cs
- PathBox.cs
- AppDomainFactory.cs
- WindowsUpDown.cs
- LiteralControl.cs
- ChineseLunisolarCalendar.cs
- FlowDocument.cs
- RuntimeHandles.cs
- MergeFailedEvent.cs
- FormsAuthentication.cs
- EntityDataSourceQueryBuilder.cs
- ItemsPanelTemplate.cs
- ListBox.cs
- ParserStreamGeometryContext.cs
- ToolStripGrip.cs
- ConfigurationCollectionAttribute.cs
- PlacementWorkspace.cs
- InvokeGenerator.cs
- JapaneseLunisolarCalendar.cs
- SafeCertificateContext.cs
- Rotation3D.cs
- HttpModuleAction.cs
- MatrixIndependentAnimationStorage.cs
- ObjectStateFormatter.cs
- Statements.cs
- ProjectionPruner.cs
- LookupBindingPropertiesAttribute.cs
- FlowDocumentScrollViewer.cs
- PathSegment.cs
- EntityTypeBase.cs
- Qualifier.cs
- UnaryNode.cs
- ObjectQueryExecutionPlan.cs
- XmlName.cs
- BaseTemplateBuildProvider.cs
- MimeBasePart.cs
- odbcmetadatacollectionnames.cs
- InstrumentationTracker.cs
- DesignOnlyAttribute.cs
- CryptoHandle.cs
- AssemblyResourceLoader.cs
- SqlUserDefinedTypeAttribute.cs
- Schema.cs
- IDReferencePropertyAttribute.cs
- Propagator.ExtentPlaceholderCreator.cs
- SafeEventLogWriteHandle.cs
- PropertyDescriptorCollection.cs
- XmlUtil.cs
- EditorPartChrome.cs
- RectIndependentAnimationStorage.cs
- typedescriptorpermissionattribute.cs
- RegexWriter.cs
- _BufferOffsetSize.cs
- ToolStripPanelRenderEventArgs.cs
- MatrixTransform.cs
- WebPartUtil.cs
- XamlParser.cs
- RepeaterItemCollection.cs
- TopClause.cs
- HashAlgorithm.cs
- PresentationTraceSources.cs
- FontConverter.cs
- TypeUtils.cs
- UnsafeNativeMethodsPenimc.cs
- TcpTransportElement.cs
- LinkClickEvent.cs
- connectionpool.cs
- PrintEvent.cs
- WmlControlAdapter.cs
- ClientReliableChannelBinder.cs
- RuntimeHandles.cs
- CounterSetInstanceCounterDataSet.cs
- SystemInformation.cs
- PanelStyle.cs
- DataSourceNameHandler.cs
- CodeAttributeDeclaration.cs
- PointLightBase.cs
- OdbcConnectionOpen.cs
- RegexCompiler.cs
- DeploymentSection.cs
- XmlCodeExporter.cs
- XmlSchemaSimpleContentRestriction.cs
- UpdateTracker.cs
- Menu.cs