Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / SqlClient / SqlInfoMessageEvent.cs / 1305376 / SqlInfoMessageEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data.SqlClient { using System; public 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; public 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
- EventDescriptorCollection.cs
- ClusterRegistryConfigurationProvider.cs
- MultiAsyncResult.cs
- UniqueContractNameValidationBehavior.cs
- ValidationPropertyAttribute.cs
- DesignDataSource.cs
- ChannelSettingsElement.cs
- IssuedTokenClientElement.cs
- PageWrapper.cs
- EmptyImpersonationContext.cs
- TripleDES.cs
- HttpPostServerProtocol.cs
- BoolLiteral.cs
- Positioning.cs
- ToolStripManager.cs
- AppSettingsExpressionBuilder.cs
- FieldBuilder.cs
- HtmlControlPersistable.cs
- XMLUtil.cs
- ConfigXmlAttribute.cs
- AffineTransform3D.cs
- Point3DAnimation.cs
- XmlSchemaIdentityConstraint.cs
- DocumentApplicationState.cs
- LocalIdKeyIdentifierClause.cs
- MatcherBuilder.cs
- AccessorTable.cs
- ApplicationBuildProvider.cs
- ExtenderProvidedPropertyAttribute.cs
- TemplateBuilder.cs
- PropertyChangedEventArgs.cs
- AutoScrollExpandMessageFilter.cs
- GridViewRow.cs
- SecurityTokenSerializer.cs
- Soap12ProtocolImporter.cs
- RegexReplacement.cs
- RuntimeVariableList.cs
- TagPrefixAttribute.cs
- BookmarkScopeInfo.cs
- DataControlReference.cs
- FreezableOperations.cs
- TextHidden.cs
- InputLanguage.cs
- SingleConverter.cs
- PropertyValueUIItem.cs
- ViewPort3D.cs
- UriTemplateQueryValue.cs
- HtmlProps.cs
- WindowsRichEdit.cs
- DataSourceHelper.cs
- MetadataSerializer.cs
- FixedPageStructure.cs
- ChannelHandler.cs
- CommonObjectSecurity.cs
- ObjectSet.cs
- Connector.cs
- SignedXmlDebugLog.cs
- NavigatorInput.cs
- RichTextBox.cs
- XmlSchemaAttributeGroup.cs
- NativeMethods.cs
- RecipientInfo.cs
- Timer.cs
- FormatterServices.cs
- AliasExpr.cs
- SqlWebEventProvider.cs
- DataGridToolTip.cs
- FieldNameLookup.cs
- ComponentFactoryHelpers.cs
- EntryPointNotFoundException.cs
- PngBitmapEncoder.cs
- DriveNotFoundException.cs
- TdsParserHelperClasses.cs
- WmlImageAdapter.cs
- DynamicUpdateCommand.cs
- WebServiceHostFactory.cs
- Item.cs
- DataGridViewRowConverter.cs
- CodeAttachEventStatement.cs
- Track.cs
- UnionExpr.cs
- HttpApplication.cs
- TogglePatternIdentifiers.cs
- OuterGlowBitmapEffect.cs
- StreamGeometry.cs
- CodeTypeDelegate.cs
- If.cs
- WSHttpTransportSecurityElement.cs
- SamlAudienceRestrictionCondition.cs
- EntityDataSourceSelectedEventArgs.cs
- CurrentChangingEventArgs.cs
- FamilyCollection.cs
- InertiaTranslationBehavior.cs
- TouchesCapturedWithinProperty.cs
- AnimatedTypeHelpers.cs
- XmlNodeChangedEventArgs.cs
- PanningMessageFilter.cs
- DataColumnMapping.cs
- ParseElement.cs
- DataGridViewComponentPropertyGridSite.cs