Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Data / System / Data / Odbc / OdbcError.cs / 1 / OdbcError.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System; using System.Data; namespace System.Data.Odbc { [Serializable] #if WINFSInternalOnly internal #else public #endif 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] #if WINFSInternalOnly internal #else public #endif 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
- Action.cs
- InstanceContextMode.cs
- Deflater.cs
- DurationConverter.cs
- MsmqTransportReceiveParameters.cs
- TargetConverter.cs
- InputReportEventArgs.cs
- IndexerNameAttribute.cs
- ImageButton.cs
- WmlFormAdapter.cs
- HitTestFilterBehavior.cs
- SimpleHandlerFactory.cs
- ProgressBarAutomationPeer.cs
- CodeValidator.cs
- DashStyle.cs
- XmlNamedNodeMap.cs
- LocationUpdates.cs
- RequestDescription.cs
- PageThemeBuildProvider.cs
- SchemaTypeEmitter.cs
- FormClosingEvent.cs
- AssemblyGen.cs
- XmlDocumentType.cs
- TextSerializer.cs
- AbstractSvcMapFileLoader.cs
- oledbmetadatacolumnnames.cs
- UIPropertyMetadata.cs
- MsmqIntegrationValidationBehavior.cs
- QueueAccessMode.cs
- FixedSOMTextRun.cs
- AdCreatedEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- DataKey.cs
- _BaseOverlappedAsyncResult.cs
- FixedPage.cs
- RenderData.cs
- BaseCollection.cs
- XmlArrayAttribute.cs
- HorizontalAlignConverter.cs
- OrderingQueryOperator.cs
- D3DImage.cs
- TrackBar.cs
- Html32TextWriter.cs
- FileLevelControlBuilderAttribute.cs
- DefaultBindingPropertyAttribute.cs
- Vector3D.cs
- LoginUtil.cs
- HtmlLabelAdapter.cs
- Vector3D.cs
- figurelength.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- InvokeCompletedEventArgs.cs
- GeneratedContractType.cs
- TreeView.cs
- BamlReader.cs
- ErrorWrapper.cs
- AttributeData.cs
- Util.cs
- DataGridDesigner.cs
- XmlMemberMapping.cs
- GACMembershipCondition.cs
- FileResponseElement.cs
- documentation.cs
- QueryCacheEntry.cs
- GridViewCommandEventArgs.cs
- CompilerTypeWithParams.cs
- ColumnMap.cs
- CodeAccessPermission.cs
- DynamicDocumentPaginator.cs
- RowToParametersTransformer.cs
- CounterSampleCalculator.cs
- OrderByQueryOptionExpression.cs
- TargetControlTypeAttribute.cs
- RayMeshGeometry3DHitTestResult.cs
- DrawingBrush.cs
- PriorityQueue.cs
- CustomSignedXml.cs
- PrintControllerWithStatusDialog.cs
- NameSpaceExtractor.cs
- TextReader.cs
- MatrixTransform3D.cs
- ObjectSet.cs
- TextBoxAutomationPeer.cs
- CollectionView.cs
- ResourceContainer.cs
- SemanticResultKey.cs
- HighlightComponent.cs
- EncryptedPackage.cs
- DetailsView.cs
- SplitterCancelEvent.cs
- XmlNamespaceManager.cs
- XmlElementElementCollection.cs
- Point3DAnimationUsingKeyFrames.cs
- PinnedBufferMemoryStream.cs
- FederatedMessageSecurityOverHttpElement.cs
- ReceiveActivityDesigner.cs
- BuildProvider.cs
- DispatcherTimer.cs
- ResourceIDHelper.cs
- TableItemStyle.cs