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
- RestHandler.cs
- MenuItemCollection.cs
- ZeroOpNode.cs
- Expression.cs
- DataServiceBehavior.cs
- NativeMethods.cs
- RecognitionEventArgs.cs
- TransformerConfigurationWizardBase.cs
- UnsafeCollabNativeMethods.cs
- DataQuery.cs
- ProcessInfo.cs
- ProofTokenCryptoHandle.cs
- HandlerFactoryCache.cs
- GeometryDrawing.cs
- CroppedBitmap.cs
- TransactionContextValidator.cs
- SendActivityEventArgs.cs
- RIPEMD160.cs
- TemplatePropertyEntry.cs
- CodeAssignStatement.cs
- RegisteredDisposeScript.cs
- DateTimeConstantAttribute.cs
- TreeViewBindingsEditor.cs
- Button.cs
- HttpStreamXmlDictionaryWriter.cs
- PrintDialog.cs
- Translator.cs
- Model3DGroup.cs
- KeyGestureValueSerializer.cs
- SafeCloseHandleCritical.cs
- BrushConverter.cs
- SystemIPGlobalProperties.cs
- DistinctQueryOperator.cs
- SecurityToken.cs
- StorageComplexTypeMapping.cs
- CheckoutException.cs
- NativeMethods.cs
- IdentityManager.cs
- SiteMapSection.cs
- TextRunProperties.cs
- DesignerDataStoredProcedure.cs
- FixedPageProcessor.cs
- DBSqlParserColumn.cs
- TextAutomationPeer.cs
- WriteTimeStream.cs
- SemaphoreFullException.cs
- DrawListViewColumnHeaderEventArgs.cs
- Inline.cs
- Listen.cs
- ActivityScheduledQuery.cs
- ApplicationException.cs
- webbrowsersite.cs
- OdbcCommand.cs
- FrameworkElementAutomationPeer.cs
- ToolStripMenuItemDesigner.cs
- MultiTargetingUtil.cs
- DragStartedEventArgs.cs
- WebEventTraceProvider.cs
- CallSite.cs
- RotateTransform3D.cs
- SurrogateEncoder.cs
- RedirectionProxy.cs
- FormViewDeleteEventArgs.cs
- RenderDataDrawingContext.cs
- AppSettingsExpressionBuilder.cs
- recordstatescratchpad.cs
- OracleBinary.cs
- SecurityException.cs
- OrderingQueryOperator.cs
- LineBreak.cs
- UserPreference.cs
- QilSortKey.cs
- MgmtConfigurationRecord.cs
- DSASignatureDeformatter.cs
- InteropBitmapSource.cs
- InputBinding.cs
- AutomationPropertyInfo.cs
- ReferencedAssemblyResolver.cs
- ClickablePoint.cs
- WorkflowRuntimeBehavior.cs
- SchemaTableColumn.cs
- TableSectionStyle.cs
- ConfigurationStrings.cs
- DelegateHelpers.cs
- NetworkAddressChange.cs
- HttpListenerResponse.cs
- EventDescriptorCollection.cs
- DataSetMappper.cs
- HtmlWindowCollection.cs
- SafeThreadHandle.cs
- SupportsEventValidationAttribute.cs
- AspNetRouteServiceHttpHandler.cs
- precedingquery.cs
- ExceptionUtil.cs
- GZipDecoder.cs
- HttpTransportSecurityElement.cs
- NoPersistProperty.cs
- DynamicActionMessageFilter.cs
- AutomationPattern.cs
- CapiHashAlgorithm.cs