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
- Delegate.cs
- LogEntry.cs
- TreeViewEvent.cs
- IPEndPoint.cs
- CodeAttributeArgumentCollection.cs
- WindowsFormsEditorServiceHelper.cs
- BitmapCacheBrush.cs
- ServiceEndpointAssociationProvider.cs
- AsymmetricSignatureFormatter.cs
- FunctionImportElement.cs
- ContextStaticAttribute.cs
- Metadata.cs
- SemanticValue.cs
- Misc.cs
- HMACSHA384.cs
- SafeCryptHandles.cs
- IISMapPath.cs
- NonParentingControl.cs
- Rule.cs
- ViewgenGatekeeper.cs
- HTMLTextWriter.cs
- SafeCryptoKeyHandle.cs
- DatagridviewDisplayedBandsData.cs
- HotSpotCollectionEditor.cs
- StandardCommandToolStripMenuItem.cs
- Font.cs
- DataMemberListEditor.cs
- NumberFunctions.cs
- SymLanguageVendor.cs
- ContractMapping.cs
- SoapElementAttribute.cs
- Baml6Assembly.cs
- LifetimeServices.cs
- DebugView.cs
- ListMarkerLine.cs
- WeakReadOnlyCollection.cs
- XmlTextReaderImplHelpers.cs
- DocumentSequence.cs
- LogoValidationException.cs
- MergeFilterQuery.cs
- ArrangedElement.cs
- MemberBinding.cs
- ValidationErrorCollection.cs
- MatrixTransform.cs
- AmbiguousMatchException.cs
- GenericTypeParameterBuilder.cs
- MetadataWorkspace.cs
- XPathSelectionIterator.cs
- StringKeyFrameCollection.cs
- XmlCharCheckingReader.cs
- RadioButton.cs
- UIElement3D.cs
- WsatConfiguration.cs
- ListSurrogate.cs
- StringWriter.cs
- ThicknessKeyFrameCollection.cs
- TextTrailingCharacterEllipsis.cs
- TypedReference.cs
- safelinkcollection.cs
- DialogResultConverter.cs
- TransformerConfigurationWizardBase.cs
- XmlElementAttribute.cs
- XmlDataSourceNodeDescriptor.cs
- SplitContainer.cs
- RepeaterItemCollection.cs
- PublishLicense.cs
- JsonReader.cs
- HandledMouseEvent.cs
- TripleDESCryptoServiceProvider.cs
- ContentElementAutomationPeer.cs
- TiffBitmapEncoder.cs
- NonParentingControl.cs
- FilterableAttribute.cs
- TextServicesHost.cs
- Thickness.cs
- LookupBindingPropertiesAttribute.cs
- ErasingStroke.cs
- ListDictionary.cs
- ObjRef.cs
- AbandonedMutexException.cs
- ResXFileRef.cs
- ResourceAssociationSet.cs
- TextModifierScope.cs
- WarningException.cs
- InstanceDescriptor.cs
- MethodExpression.cs
- DependencyObject.cs
- WebSysDefaultValueAttribute.cs
- ScriptRegistrationManager.cs
- FixedPageProcessor.cs
- NavigateEvent.cs
- AVElementHelper.cs
- HttpConfigurationSystem.cs
- SystemInfo.cs
- XmlRawWriterWrapper.cs
- WebPartsSection.cs
- XmlHierarchicalEnumerable.cs
- PointAnimationUsingPath.cs
- Int32KeyFrameCollection.cs
- CompileLiteralTextParser.cs