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
- UserControlBuildProvider.cs
- EventLogPermission.cs
- ProgressBar.cs
- SettingsBase.cs
- XmlDataFileEditor.cs
- DelegateTypeInfo.cs
- TimeSpanMinutesConverter.cs
- ValueSerializer.cs
- DataGridViewIntLinkedList.cs
- EditorZone.cs
- EventRoute.cs
- CornerRadius.cs
- SqlLiftWhereClauses.cs
- KeyGestureValueSerializer.cs
- ObjectCache.cs
- PointHitTestResult.cs
- _SslState.cs
- CodeEntryPointMethod.cs
- nulltextcontainer.cs
- CompleteWizardStep.cs
- DataList.cs
- NavigationProgressEventArgs.cs
- ArrangedElement.cs
- AutomationIdentifier.cs
- MemberProjectionIndex.cs
- AnnotationResource.cs
- GeneralTransform3DCollection.cs
- MembershipSection.cs
- DefinitionBase.cs
- TraceHandlerErrorFormatter.cs
- StreamWriter.cs
- TextSpan.cs
- ContentElement.cs
- CursorEditor.cs
- FixedPageStructure.cs
- BuiltInExpr.cs
- DesignerDataTable.cs
- WebCodeGenerator.cs
- ObjectListCommand.cs
- Math.cs
- HandledEventArgs.cs
- TextDecorationCollection.cs
- DataGridViewTextBoxColumn.cs
- DataPagerFieldItem.cs
- GiveFeedbackEvent.cs
- Tile.cs
- ViewSimplifier.cs
- IteratorAsyncResult.cs
- ProviderConnectionPoint.cs
- WebService.cs
- ToolStripItemCollection.cs
- FunctionImportElement.cs
- OrderedHashRepartitionEnumerator.cs
- DefaultValidator.cs
- SqlDataSourceCommandEventArgs.cs
- DataGridViewToolTip.cs
- StreamMarshaler.cs
- FileAuthorizationModule.cs
- AdCreatedEventArgs.cs
- SettingsPropertyIsReadOnlyException.cs
- PersonalizationProviderHelper.cs
- SecurityResources.cs
- StorageEntitySetMapping.cs
- UnsafeNetInfoNativeMethods.cs
- WindowAutomationPeer.cs
- BCLDebug.cs
- MetadataImporterQuotas.cs
- DSASignatureDeformatter.cs
- _NetworkingPerfCounters.cs
- ZipPackagePart.cs
- ManagementException.cs
- LayoutTableCell.cs
- LinqDataSourceHelper.cs
- MemoryPressure.cs
- TrackingMemoryStream.cs
- StylusPointPropertyUnit.cs
- SemanticValue.cs
- MinimizableAttributeTypeConverter.cs
- OciLobLocator.cs
- JsonXmlDataContract.cs
- XamlBuildProvider.cs
- RuleSettingsCollection.cs
- LocatorGroup.cs
- Size.cs
- XmlSchemaAll.cs
- BooleanAnimationBase.cs
- Queue.cs
- SqlAliaser.cs
- BufferedReadStream.cs
- PrincipalPermission.cs
- SpellerStatusTable.cs
- ToolStripItemDataObject.cs
- TemplatedControlDesigner.cs
- XmlAttributeOverrides.cs
- Panel.cs
- EmptyStringExpandableObjectConverter.cs
- AQNBuilder.cs
- Propagator.JoinPropagator.cs
- Msec.cs
- AsyncWaitHandle.cs