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
- LiteralDesigner.cs
- GuidelineSet.cs
- TypeConverterValueSerializer.cs
- AssemblyResourceLoader.cs
- TypeElementCollection.cs
- ResolveNameEventArgs.cs
- HotSpotCollection.cs
- ResourceExpressionBuilder.cs
- WebPartZone.cs
- CodeTypeReferenceExpression.cs
- OdbcReferenceCollection.cs
- DataGridCommandEventArgs.cs
- ComAdminInterfaces.cs
- CompositionTarget.cs
- ObjectKeyFrameCollection.cs
- GridViewAutomationPeer.cs
- ZipIOFileItemStream.cs
- RegexCaptureCollection.cs
- ClientConfigPaths.cs
- EncryptedXml.cs
- TimeZone.cs
- FixedSOMPage.cs
- SQLBoolean.cs
- QueryContinueDragEvent.cs
- StringAnimationUsingKeyFrames.cs
- PipeSecurity.cs
- FileLogRecordEnumerator.cs
- TreeNodeStyleCollection.cs
- __Error.cs
- NativeMethods.cs
- Compiler.cs
- Clock.cs
- SemanticBasicElement.cs
- SoundPlayer.cs
- BamlLocalizabilityResolver.cs
- ImageSource.cs
- SubMenuStyleCollection.cs
- DllNotFoundException.cs
- ToolStripButton.cs
- TraversalRequest.cs
- RawUIStateInputReport.cs
- SystemIPInterfaceStatistics.cs
- XmlEntity.cs
- Hash.cs
- StackBuilderSink.cs
- AppDomain.cs
- ExceptionValidationRule.cs
- CommandExpr.cs
- StatusInfoItem.cs
- _TLSstream.cs
- Trace.cs
- OleDbConnectionFactory.cs
- TimersDescriptionAttribute.cs
- PeerFlooder.cs
- DataTableClearEvent.cs
- ProcessHostFactoryHelper.cs
- BitmapEffectDrawing.cs
- SecurityProtocolFactory.cs
- RowUpdatedEventArgs.cs
- LabelLiteral.cs
- ImageSourceConverter.cs
- WebPart.cs
- Setter.cs
- SqlDataSource.cs
- CorrelationRequestContext.cs
- EdmPropertyAttribute.cs
- AnimationClock.cs
- ConstantExpression.cs
- LinqExpressionNormalizer.cs
- ChannelManager.cs
- ResourceContainer.cs
- PrimitiveSchema.cs
- WebBrowserSiteBase.cs
- ClientSideProviderDescription.cs
- SingleStorage.cs
- VirtualPath.cs
- GridViewEditEventArgs.cs
- CodeValidator.cs
- MultiSelector.cs
- RSAOAEPKeyExchangeFormatter.cs
- LinqDataSourceContextData.cs
- ShaperBuffers.cs
- MultiTrigger.cs
- TypeElement.cs
- ScriptRef.cs
- SchemaTableOptionalColumn.cs
- Convert.cs
- GradientStop.cs
- ThrowHelper.cs
- CTreeGenerator.cs
- ParameterRetriever.cs
- TrustManagerMoreInformation.cs
- DataGridCell.cs
- ThaiBuddhistCalendar.cs
- ApplicationManager.cs
- WindowsSolidBrush.cs
- LoginName.cs
- IDQuery.cs
- ImageMetadata.cs
- SpecularMaterial.cs