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
- GeometryCombineModeValidation.cs
- ValueUtilsSmi.cs
- TreeWalker.cs
- RenamedEventArgs.cs
- EventToken.cs
- DesignerActionList.cs
- SqlUserDefinedAggregateAttribute.cs
- InvokePattern.cs
- Classification.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- TabControl.cs
- ProtocolsConfigurationHandler.cs
- BuildProviderCollection.cs
- CqlBlock.cs
- WebPartMenuStyle.cs
- sqlmetadatafactory.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ActiveDocumentEvent.cs
- ExplicitDiscriminatorMap.cs
- PasswordTextContainer.cs
- ReliableSessionElement.cs
- BuilderPropertyEntry.cs
- SoapSchemaImporter.cs
- EntityDataSourceChangingEventArgs.cs
- ResponseBodyWriter.cs
- RunWorkerCompletedEventArgs.cs
- Size3D.cs
- TokenCreationParameter.cs
- RichTextBox.cs
- RequestDescription.cs
- JoinSymbol.cs
- BufferedReadStream.cs
- RefreshPropertiesAttribute.cs
- GridViewDeleteEventArgs.cs
- NativeMethods.cs
- XmlSchemaFacet.cs
- Preprocessor.cs
- TypeName.cs
- ConsoleCancelEventArgs.cs
- MenuCommand.cs
- TreeViewImageIndexConverter.cs
- AccessViolationException.cs
- PathSegment.cs
- CodeDOMUtility.cs
- SmtpCommands.cs
- LiteralDesigner.cs
- shaperfactory.cs
- XmlSerializer.cs
- InternalsVisibleToAttribute.cs
- RegularExpressionValidator.cs
- StagingAreaInputItem.cs
- ServiceHttpHandlerFactory.cs
- ValidationSummary.cs
- Brush.cs
- CaseStatementProjectedSlot.cs
- CancellationTokenSource.cs
- BitmapEffectDrawing.cs
- TextParaLineResult.cs
- TrueReadOnlyCollection.cs
- HttpCapabilitiesEvaluator.cs
- WindowsFormsHelpers.cs
- EventMetadata.cs
- XPathScanner.cs
- AttachedAnnotationChangedEventArgs.cs
- EditorZone.cs
- SqlDataAdapter.cs
- Condition.cs
- TaskFileService.cs
- XmlNodeChangedEventArgs.cs
- TableParaClient.cs
- InitializerFacet.cs
- StringHandle.cs
- DCSafeHandle.cs
- Decimal.cs
- ProbeMatches11.cs
- PageAsyncTaskManager.cs
- odbcmetadatacolumnnames.cs
- SafeIUnknown.cs
- ExternalFile.cs
- LogStore.cs
- TextFragmentEngine.cs
- TypeHelper.cs
- PageSettings.cs
- TypeDelegator.cs
- CqlParserHelpers.cs
- activationcontext.cs
- SystemIPInterfaceProperties.cs
- TimersDescriptionAttribute.cs
- ListBox.cs
- ActivityMarkupSerializer.cs
- CompositeScriptReferenceEventArgs.cs
- EncoderReplacementFallback.cs
- GridViewColumnHeader.cs
- CodeTypeParameterCollection.cs
- CustomErrorsSectionWrapper.cs
- MatrixValueSerializer.cs
- Inline.cs
- ProgressBarRenderer.cs
- HandlerWithFactory.cs
- IdentityValidationException.cs