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
- PolyQuadraticBezierSegment.cs
- ProxyManager.cs
- SecurityChannelFaultConverter.cs
- EventToken.cs
- HtmlContainerControl.cs
- SpeechDetectedEventArgs.cs
- InternalEnumValidator.cs
- AxisAngleRotation3D.cs
- MaxValueConverter.cs
- DocumentGridPage.cs
- XmlDocument.cs
- LinearKeyFrames.cs
- ISFTagAndGuidCache.cs
- ColumnMapVisitor.cs
- EmptyEnumerable.cs
- WorkflowApplicationEventArgs.cs
- SmtpSection.cs
- LambdaCompiler.Lambda.cs
- ProgressBar.cs
- EventLogReader.cs
- StorageEntityTypeMapping.cs
- TrackingWorkflowEventArgs.cs
- PackWebRequest.cs
- translator.cs
- EntityContainerEmitter.cs
- ContainerAction.cs
- RestClientProxyHandler.cs
- VisualStateGroup.cs
- ReaderContextStackData.cs
- QuotedPairReader.cs
- TemplatedAdorner.cs
- ApplicationException.cs
- SqlAliaser.cs
- ExtensionDataObject.cs
- DataGridLinkButton.cs
- XmlSchemaAnnotated.cs
- ValidatingReaderNodeData.cs
- ZeroOpNode.cs
- EdmFunctions.cs
- MethodImplAttribute.cs
- ProcessThread.cs
- FormatterConverter.cs
- StyleCollectionEditor.cs
- WindowsAltTab.cs
- CodeCatchClauseCollection.cs
- XmlSchemaComplexContentRestriction.cs
- ListManagerBindingsCollection.cs
- FileNotFoundException.cs
- MatrixAnimationUsingPath.cs
- DoubleLinkList.cs
- SmtpNtlmAuthenticationModule.cs
- Authorization.cs
- QuestionEventArgs.cs
- CngAlgorithmGroup.cs
- DataGridViewRowPostPaintEventArgs.cs
- RegexRunner.cs
- ResolveCriteriaCD1.cs
- DataSourceView.cs
- DataTableReaderListener.cs
- UndoManager.cs
- ProcessHostConfigUtils.cs
- Listbox.cs
- MasterPageBuildProvider.cs
- FixedTextBuilder.cs
- Hash.cs
- SchemaTypeEmitter.cs
- Message.cs
- SiteMapPath.cs
- FontFamilyConverter.cs
- GradientBrush.cs
- DoubleCollection.cs
- InternalSafeNativeMethods.cs
- ADMembershipProvider.cs
- ListViewGroupConverter.cs
- TableProviderWrapper.cs
- DebugTracing.cs
- ProfileSection.cs
- CounterSample.cs
- HexParser.cs
- BamlRecordHelper.cs
- CommentEmitter.cs
- ConfigurationLocationCollection.cs
- SafePointer.cs
- InvariantComparer.cs
- FormViewRow.cs
- DateBoldEvent.cs
- ErrorInfoXmlDocument.cs
- TextUtf8RawTextWriter.cs
- PerfCounterSection.cs
- PolyLineSegment.cs
- JsonFormatWriterGenerator.cs
- MailSettingsSection.cs
- WindowAutomationPeer.cs
- Menu.cs
- WorkBatch.cs
- OuterGlowBitmapEffect.cs
- VirtualizedItemPattern.cs
- AlignmentXValidation.cs
- DelegateHelpers.cs
- PrePrepareMethodAttribute.cs