Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Odbc / OdbcError.cs / 1305376 / OdbcError.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; namespace System.Data.Odbc { [Serializable] public sealed class OdbcError { //Data internal string _message; internal string _state; internal int _nativeerror; internal string _source; internal OdbcError(string source, string message, string state, int nativeerror) { _source = source; _message = message; _state = state; _nativeerror= nativeerror; } public string Message { get { return ((null != _message) ? _message : String.Empty); } } public string SQLState { get { return _state; } } public int NativeError { get { return _nativeerror; } } public string Source { get { return ((null != _source) ? _source : String.Empty); } } internal void SetSource (string Source) { _source = Source; } override public string ToString() { return Message; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; namespace System.Data.Odbc { [Serializable] public sealed class OdbcError { //Data internal string _message; internal string _state; internal int _nativeerror; internal string _source; internal OdbcError(string source, string message, string state, int nativeerror) { _source = source; _message = message; _state = state; _nativeerror= nativeerror; } public string Message { get { return ((null != _message) ? _message : String.Empty); } } public string SQLState { get { return _state; } } public int NativeError { get { return _nativeerror; } } public string Source { get { return ((null != _source) ? _source : String.Empty); } } internal void SetSource (string Source) { _source = Source; } override public string ToString() { 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
- GroupBoxDesigner.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- ConvertersCollection.cs
- PointHitTestParameters.cs
- DigitalSignature.cs
- ForceCopyBuildProvider.cs
- GraphicsContainer.cs
- FolderLevelBuildProviderCollection.cs
- GridViewDeleteEventArgs.cs
- CollectionEditor.cs
- RoleManagerEventArgs.cs
- SuppressIldasmAttribute.cs
- Module.cs
- ApplicationInfo.cs
- GeometryDrawing.cs
- CompositeActivityCodeGenerator.cs
- OptionalRstParameters.cs
- HttpHandlerActionCollection.cs
- RelationshipEndCollection.cs
- QilLiteral.cs
- HwndMouseInputProvider.cs
- BitmapMetadataBlob.cs
- TreeNodeCollection.cs
- X509UI.cs
- ViewDesigner.cs
- CssClassPropertyAttribute.cs
- LineInfo.cs
- AuthenticationConfig.cs
- Dispatcher.cs
- BitmapEffectOutputConnector.cs
- UiaCoreApi.cs
- MappingException.cs
- DefaultDiscoveryService.cs
- CharEntityEncoderFallback.cs
- followingsibling.cs
- ResourcePermissionBaseEntry.cs
- CallSiteHelpers.cs
- ADMembershipProvider.cs
- ConditionValidator.cs
- DataViewListener.cs
- WindowsFormsLinkLabel.cs
- PeerObject.cs
- ProfileManager.cs
- InternalCache.cs
- MachineKeySection.cs
- MetadataCache.cs
- EncryptedHeaderXml.cs
- SmtpClient.cs
- BuildResultCache.cs
- LogReserveAndAppendState.cs
- InkCanvasSelection.cs
- Native.cs
- TaiwanCalendar.cs
- EdmItemCollection.cs
- AsyncOperation.cs
- PrintPreviewControl.cs
- Models.cs
- SplineKeyFrames.cs
- SafeArrayRankMismatchException.cs
- OAVariantLib.cs
- DistinctQueryOperator.cs
- ExternalException.cs
- QilLiteral.cs
- DataConnectionHelper.cs
- LoadWorkflowAsyncResult.cs
- InsufficientExecutionStackException.cs
- TouchEventArgs.cs
- XPathNodeList.cs
- SmiRequestExecutor.cs
- WebControlsSection.cs
- WindowsGraphics2.cs
- WindowsSpinner.cs
- FunctionImportElement.cs
- MissingSatelliteAssemblyException.cs
- PropertyToken.cs
- InputDevice.cs
- WsatServiceAddress.cs
- SBCSCodePageEncoding.cs
- ReceiveContextCollection.cs
- BooleanExpr.cs
- BypassElement.cs
- FileDialog_Vista_Interop.cs
- ComboBox.cs
- loginstatus.cs
- WindowsButton.cs
- DataList.cs
- SqlXmlStorage.cs
- CssClassPropertyAttribute.cs
- DiffuseMaterial.cs
- XmlValueConverter.cs
- RuntimeWrappedException.cs
- TypeHelpers.cs
- FieldAccessException.cs
- ImageAutomationPeer.cs
- GrammarBuilder.cs
- DataGridTablesFactory.cs
- PolyQuadraticBezierSegment.cs
- arc.cs
- Rotation3D.cs
- ChainOfResponsibility.cs