Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Comparer.cs
- GPPOINTF.cs
- IisTraceWebEventProvider.cs
- HtmlControl.cs
- PathSegmentCollection.cs
- PrimaryKeyTypeConverter.cs
- MethodSet.cs
- PropertyDescriptorCollection.cs
- ProviderCommandInfoUtils.cs
- SizeValueSerializer.cs
- SystemIcmpV6Statistics.cs
- TargetFrameworkUtil.cs
- HandoffBehavior.cs
- RelationshipWrapper.cs
- WindowsMenu.cs
- GPPOINT.cs
- DataKeyCollection.cs
- GcHandle.cs
- DesignerDataSchemaClass.cs
- FacetChecker.cs
- SqlCommand.cs
- FormatVersion.cs
- EventQueueState.cs
- ListItemParagraph.cs
- IApplicationTrustManager.cs
- BlockCollection.cs
- SelectionPattern.cs
- Point3DAnimationUsingKeyFrames.cs
- PersistenceTypeAttribute.cs
- TransferRequestHandler.cs
- QfeChecker.cs
- MSAAWinEventWrap.cs
- InitializationEventAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- XmlUrlResolver.cs
- CodeDirectionExpression.cs
- TextElementAutomationPeer.cs
- Model3DGroup.cs
- OdbcDataReader.cs
- JoinTreeSlot.cs
- XmlSchemaSimpleContentExtension.cs
- HideDisabledControlAdapter.cs
- GlobalEventManager.cs
- ServiceBusyException.cs
- AutoGeneratedField.cs
- SkipQueryOptionExpression.cs
- TabControlCancelEvent.cs
- JpegBitmapDecoder.cs
- SqlTypesSchemaImporter.cs
- MetaModel.cs
- LinqDataSource.cs
- TypeDescriptorFilterService.cs
- CursorConverter.cs
- FragmentQueryProcessor.cs
- NavigationFailedEventArgs.cs
- BamlMapTable.cs
- TrackingMemoryStreamFactory.cs
- MimeWriter.cs
- glyphs.cs
- MimeWriter.cs
- SrgsRulesCollection.cs
- PersonalizableAttribute.cs
- GregorianCalendar.cs
- Thumb.cs
- uribuilder.cs
- XmlBinaryReader.cs
- PageParser.cs
- EnvelopedSignatureTransform.cs
- FrameworkObject.cs
- XslNumber.cs
- DBSchemaTable.cs
- OleDbCommand.cs
- NativeRightsManagementAPIsStructures.cs
- Vector3DKeyFrameCollection.cs
- WebPartCatalogAddVerb.cs
- ProxyWebPartManager.cs
- ButtonBaseAutomationPeer.cs
- PlainXmlWriter.cs
- HttpConfigurationSystem.cs
- AssemblyNameProxy.cs
- CompareInfo.cs
- DataServiceRequestOfT.cs
- WebScriptServiceHostFactory.cs
- HostedHttpRequestAsyncResult.cs
- CryptoStream.cs
- ProcessHost.cs
- WindowPatternIdentifiers.cs
- CodeSnippetCompileUnit.cs
- CodeCommentStatement.cs
- UnmanagedMarshal.cs
- StorageComplexTypeMapping.cs
- SourceFileInfo.cs
- ToolStripArrowRenderEventArgs.cs
- BinaryCommonClasses.cs
- KeyConstraint.cs
- LinqDataSourceContextEventArgs.cs
- IIS7WorkerRequest.cs
- HttpModuleAction.cs
- SQLByte.cs
- SqlServices.cs