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
- ConnectionPointCookie.cs
- GlobalizationSection.cs
- CapiSafeHandles.cs
- PrintDialog.cs
- FloatSumAggregationOperator.cs
- HScrollBar.cs
- PasswordTextContainer.cs
- DefaultValueTypeConverter.cs
- Soap11ServerProtocol.cs
- NavigationProperty.cs
- TreeViewBindingsEditorForm.cs
- SQLInt16Storage.cs
- DateTimeSerializationSection.cs
- ExpressionQuoter.cs
- SqlNodeAnnotation.cs
- RowBinding.cs
- CapabilitiesUse.cs
- BlurEffect.cs
- RangeValidator.cs
- DurationConverter.cs
- TableRowCollection.cs
- ListItemCollection.cs
- RenamedEventArgs.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- TextSelectionHelper.cs
- TextControl.cs
- Imaging.cs
- User.cs
- TraceSection.cs
- SqlIdentifier.cs
- MappingException.cs
- SamlAuthenticationStatement.cs
- DbConnectionInternal.cs
- DataGridViewCellPaintingEventArgs.cs
- Context.cs
- TypeToStringValueConverter.cs
- SolidBrush.cs
- Brush.cs
- DirectoryNotFoundException.cs
- SupportsEventValidationAttribute.cs
- SqlRecordBuffer.cs
- MailDefinition.cs
- COM2Enum.cs
- TreeNodeBinding.cs
- SqlCommandBuilder.cs
- NumberSubstitution.cs
- ClassHandlersStore.cs
- ResXFileRef.cs
- ClipboardProcessor.cs
- EpmAttributeNameBuilder.cs
- SecurityContext.cs
- ShaderEffect.cs
- RoleService.cs
- SimpleLine.cs
- RelationshipConstraintValidator.cs
- Win32KeyboardDevice.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- WebRequestModulesSection.cs
- AsyncContentLoadedEventArgs.cs
- formatter.cs
- TimeSpanConverter.cs
- WorkflowApplicationAbortedEventArgs.cs
- clipboard.cs
- StatementContext.cs
- ProxyWebPartManagerDesigner.cs
- UserControlParser.cs
- FrameworkRichTextComposition.cs
- QilSortKey.cs
- TraceProvider.cs
- MessageQueuePermissionEntryCollection.cs
- CommandEventArgs.cs
- GroupStyle.cs
- ConfigPathUtility.cs
- PointAnimationUsingKeyFrames.cs
- SpoolingTask.cs
- RecognizerInfo.cs
- IsolatedStoragePermission.cs
- WaveHeader.cs
- WindowsTooltip.cs
- Int32Rect.cs
- WebPartVerb.cs
- BitmapEffectRenderDataResource.cs
- StyleSelector.cs
- LinqDataView.cs
- ExtensionWindow.cs
- DataGridColumnDropSeparator.cs
- ADMembershipProvider.cs
- TextEditorSelection.cs
- Latin1Encoding.cs
- SystemUnicastIPAddressInformation.cs
- FontFamily.cs
- ReferencedCollectionType.cs
- DataServiceEntityAttribute.cs
- AggregateNode.cs
- TextDataBindingHandler.cs
- DefaultBinder.cs
- EmbeddedObject.cs
- ListViewDataItem.cs
- DependencyPropertyConverter.cs
- WebDescriptionAttribute.cs