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
- FileDialog.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- RegexMatchCollection.cs
- Blend.cs
- VisualStyleRenderer.cs
- GridViewSelectEventArgs.cs
- SecurityTokenParameters.cs
- PageBuildProvider.cs
- TrackingCondition.cs
- ByteStack.cs
- OperandQuery.cs
- EmptyStringExpandableObjectConverter.cs
- __ConsoleStream.cs
- CqlWriter.cs
- AspNetCacheProfileAttribute.cs
- HashMembershipCondition.cs
- BrowserDefinition.cs
- CodeGeneratorOptions.cs
- WsdlBuildProvider.cs
- GlobalEventManager.cs
- PageAsyncTaskManager.cs
- TakeQueryOptionExpression.cs
- XPathSelfQuery.cs
- OleDbReferenceCollection.cs
- QueryCreatedEventArgs.cs
- RegexMatch.cs
- DeadCharTextComposition.cs
- TrackingMemoryStream.cs
- IItemContainerGenerator.cs
- Crc32.cs
- DataGridViewComboBoxColumn.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- RowCache.cs
- XamlSerializerUtil.cs
- XmlDownloadManager.cs
- SectionVisual.cs
- NameValueCollection.cs
- UniqueIdentifierService.cs
- NativeMethodsOther.cs
- MaterialCollection.cs
- XmlSchemaRedefine.cs
- XmlSchemaValidator.cs
- ETagAttribute.cs
- SecurityAppliedMessage.cs
- OneWayBindingElement.cs
- ValidationErrorEventArgs.cs
- LocalServiceSecuritySettingsElement.cs
- HtmlInputPassword.cs
- SyndicationItemFormatter.cs
- ValueTypeFieldReference.cs
- PrimitiveType.cs
- SynchronizedInputPattern.cs
- ExtensibleClassFactory.cs
- oledbmetadatacolumnnames.cs
- UInt16Converter.cs
- DataRowChangeEvent.cs
- ExeConfigurationFileMap.cs
- SqlXmlStorage.cs
- precedingsibling.cs
- DataServiceRequestException.cs
- Util.cs
- CommonRemoteMemoryBlock.cs
- Int64Animation.cs
- DeviceContext.cs
- ReflectionUtil.cs
- SQLInt16.cs
- SiteMap.cs
- FileLogRecordEnumerator.cs
- CharacterShapingProperties.cs
- X509ChainElement.cs
- MeasureData.cs
- GorillaCodec.cs
- Constraint.cs
- MarginCollapsingState.cs
- SemaphoreFullException.cs
- UnsafeNativeMethods.cs
- WebPartRestoreVerb.cs
- TemplatedMailWebEventProvider.cs
- Overlapped.cs
- OleDbException.cs
- DBBindings.cs
- PopupEventArgs.cs
- Dynamic.cs
- ProjectionQueryOptionExpression.cs
- DatagramAdapter.cs
- SiteMapPathDesigner.cs
- OdbcInfoMessageEvent.cs
- CellQuery.cs
- TemplateInstanceAttribute.cs
- LocalValueEnumerator.cs
- BezierSegment.cs
- ProfileModule.cs
- CodeTypeReference.cs
- Command.cs
- XmlObjectSerializerWriteContext.cs
- _ConnectionGroup.cs
- TransformedBitmap.cs
- XamlInt32CollectionSerializer.cs
- StreamReader.cs
- DefaultSettingsSection.cs