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
- FrameSecurityDescriptor.cs
- CodeExporter.cs
- AppDomain.cs
- DebugView.cs
- UnsupportedPolicyOptionsException.cs
- SvcMapFileSerializer.cs
- SQLDecimalStorage.cs
- MeasureItemEvent.cs
- InputReportEventArgs.cs
- HttpResponseMessageProperty.cs
- XmlStreamedByteStreamReader.cs
- SystemIPv6InterfaceProperties.cs
- StorageAssociationTypeMapping.cs
- RoutedEventHandlerInfo.cs
- EditorZoneBase.cs
- BufferedWebEventProvider.cs
- TrackBar.cs
- ConstraintCollection.cs
- BigInt.cs
- IResourceProvider.cs
- ThreadAbortException.cs
- PerfCounters.cs
- EncryptedPackageFilter.cs
- TrackingProfile.cs
- InternalEnumValidatorAttribute.cs
- ToolStripCustomTypeDescriptor.cs
- CompilerGlobalScopeAttribute.cs
- Splitter.cs
- HttpResponseHeader.cs
- HttpProfileGroupBase.cs
- SecureUICommand.cs
- TypeUtil.cs
- Crypto.cs
- TextBlock.cs
- XmlWriterSettings.cs
- ErrorFormatterPage.cs
- OutArgument.cs
- MethodBuilderInstantiation.cs
- EditorOptionAttribute.cs
- CompositeFontParser.cs
- MsmqMessage.cs
- DynamicFilter.cs
- FixedSOMTableRow.cs
- KeyConverter.cs
- XmlSerializationReader.cs
- MenuCommand.cs
- FilterableAttribute.cs
- XmlComplianceUtil.cs
- MessageSecurityProtocol.cs
- XmlSequenceWriter.cs
- dataSvcMapFileLoader.cs
- ConstraintStruct.cs
- PolicyStatement.cs
- TextCompositionManager.cs
- FactoryGenerator.cs
- SqlWebEventProvider.cs
- AssociationProvider.cs
- ObjectNavigationPropertyMapping.cs
- CodePrimitiveExpression.cs
- FontNamesConverter.cs
- SRef.cs
- BuildProvider.cs
- MediaElementAutomationPeer.cs
- XmlSortKeyAccumulator.cs
- LineGeometry.cs
- HiddenFieldDesigner.cs
- Interlocked.cs
- BoundsDrawingContextWalker.cs
- CodePageUtils.cs
- TreeNodeStyleCollectionEditor.cs
- CursorConverter.cs
- NavigationService.cs
- ChangePassword.cs
- Win32.cs
- RegionIterator.cs
- TagPrefixAttribute.cs
- OdbcPermission.cs
- WS2007HttpBindingElement.cs
- BuildResultCache.cs
- TreeWalkHelper.cs
- ToolStripLabel.cs
- CharEnumerator.cs
- ReferenceEqualityComparer.cs
- EntitySetBase.cs
- SchemaExporter.cs
- ArglessEventHandlerProxy.cs
- XPathParser.cs
- EntityDataSourceSelectingEventArgs.cs
- FunctionImportElement.cs
- _SecureChannel.cs
- TableColumnCollection.cs
- CodeStatementCollection.cs
- IISMapPath.cs
- DataGridViewHeaderCell.cs
- Metafile.cs
- TemplateBindingExpression.cs
- PrimitiveXmlSerializers.cs
- Span.cs
- SimpleParser.cs
- QuaternionKeyFrameCollection.cs