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
- MetadataArtifactLoaderComposite.cs
- DataError.cs
- xsdvalidator.cs
- WebCategoryAttribute.cs
- UIElementIsland.cs
- WebPartDescriptionCollection.cs
- ParameterModifier.cs
- ItemsPanelTemplate.cs
- BoolLiteral.cs
- DBSchemaTable.cs
- SqlRemoveConstantOrderBy.cs
- SizeValueSerializer.cs
- ExternalFile.cs
- CodeIdentifiers.cs
- HelpEvent.cs
- X509SubjectKeyIdentifierClause.cs
- MouseActionConverter.cs
- SelectionProcessor.cs
- WebPartManager.cs
- TranslateTransform.cs
- DiagnosticTraceSource.cs
- SQLBytes.cs
- StringAttributeCollection.cs
- JpegBitmapDecoder.cs
- ProgressBar.cs
- ResourceExpressionEditor.cs
- RichTextBoxAutomationPeer.cs
- InternalTransaction.cs
- DataGridHeaderBorder.cs
- RequestCacheValidator.cs
- XmlSchemaIdentityConstraint.cs
- ValidateNames.cs
- ProtectedUri.cs
- MessageQueueException.cs
- SHA384CryptoServiceProvider.cs
- NavigatorInput.cs
- FilteredAttributeCollection.cs
- DataGridViewColumnTypePicker.cs
- RealProxy.cs
- TdsParserHelperClasses.cs
- Pens.cs
- FixedSOMTable.cs
- Keywords.cs
- MimePart.cs
- HiddenField.cs
- LabelLiteral.cs
- ProtocolsSection.cs
- VirtualPath.cs
- TextAdaptor.cs
- WorkflowOwnershipException.cs
- PagerSettings.cs
- ResolvedKeyFrameEntry.cs
- EncoderParameters.cs
- PropertyFilterAttribute.cs
- EntityContainer.cs
- Globals.cs
- ColorMap.cs
- PackWebRequestFactory.cs
- ScrollItemPattern.cs
- SchemaTableOptionalColumn.cs
- PropertyNames.cs
- MergePropertyDescriptor.cs
- TypefaceCollection.cs
- Stylesheet.cs
- DebugView.cs
- TextBoxDesigner.cs
- ViewStateAttachedPropertyFeature.cs
- Queue.cs
- PropertyMetadata.cs
- OutputCacheSettingsSection.cs
- DesignerInterfaces.cs
- Journaling.cs
- AccessibleObject.cs
- Signature.cs
- ZipIOFileItemStream.cs
- AssemblyBuilderData.cs
- CornerRadiusConverter.cs
- DataServiceHostWrapper.cs
- CanonicalFormWriter.cs
- DecoderBestFitFallback.cs
- SubMenuStyleCollection.cs
- Point4DConverter.cs
- SqlServices.cs
- ProtocolsConfiguration.cs
- UInt16Converter.cs
- SqlConnectionString.cs
- FixedSOMContainer.cs
- ReadOnlyDataSourceView.cs
- ParameterToken.cs
- SecurityTokenSerializer.cs
- UserPreferenceChangedEventArgs.cs
- StructuredType.cs
- VirtualizedContainerService.cs
- NumberAction.cs
- EventLogEntry.cs
- CoTaskMemHandle.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- AppDomainGrammarProxy.cs
- CommandBinding.cs
- MergeEnumerator.cs