Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Data / System / Data / Common / dbdatarecord.cs / 1 / dbdatarecord.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data.Common { using System.ComponentModel; #if WINFSInternalOnly internal #else public #endif abstract class DbDataRecord : ICustomTypeDescriptor, IDataRecord { protected DbDataRecord() : base() { } public abstract int FieldCount { get; } public abstract object this[int i] { get; } public abstract object this[string name] { get; } public abstract bool GetBoolean(int i); public abstract byte GetByte(int i); public abstract long GetBytes(int i, long dataIndex, byte[] buffer, int bufferIndex, int length); public abstract char GetChar(int i); public abstract long GetChars(int i, long dataIndex, char[] buffer, int bufferIndex, int length); public IDataReader GetData(int i) { return GetDbDataReader(i); } virtual protected DbDataReader GetDbDataReader(int i) { // NOTE: This method is virtual because we're required to implement // it however most providers won't support it. Only the OLE DB // provider supports it right now, and they can override it. throw ADP.NotSupported(); } public abstract string GetDataTypeName(int i); public abstract DateTime GetDateTime(int i); public abstract Decimal GetDecimal(int i); public abstract double GetDouble(int i); public abstract Type GetFieldType(int i); public abstract float GetFloat(int i); public abstract Guid GetGuid(int i); public abstract Int16 GetInt16(int i); public abstract Int32 GetInt32(int i); public abstract Int64 GetInt64(int i); public abstract string GetName(int i); public abstract int GetOrdinal(string name); public abstract string GetString(int i); public abstract object GetValue(int i); public abstract int GetValues(object[] values); public abstract bool IsDBNull(int i); // // ICustomTypeDescriptor // AttributeCollection ICustomTypeDescriptor.GetAttributes() { return new AttributeCollection((Attribute[])null); } string ICustomTypeDescriptor.GetClassName() { return null; } string ICustomTypeDescriptor.GetComponentName() { return null; } TypeConverter ICustomTypeDescriptor.GetConverter() { return null; } EventDescriptor ICustomTypeDescriptor.GetDefaultEvent() { return null; } PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() { return null; } object ICustomTypeDescriptor.GetEditor(Type editorBaseType) { return null; } EventDescriptorCollection ICustomTypeDescriptor.GetEvents() { return new EventDescriptorCollection(null); } EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { return new EventDescriptorCollection(null); } PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() { return((ICustomTypeDescriptor)this).GetProperties(null); } PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) { return new PropertyDescriptorCollection(null); } object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor pd) { return this; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data.Common { using System.ComponentModel; #if WINFSInternalOnly internal #else public #endif abstract class DbDataRecord : ICustomTypeDescriptor, IDataRecord { protected DbDataRecord() : base() { } public abstract int FieldCount { get; } public abstract object this[int i] { get; } public abstract object this[string name] { get; } public abstract bool GetBoolean(int i); public abstract byte GetByte(int i); public abstract long GetBytes(int i, long dataIndex, byte[] buffer, int bufferIndex, int length); public abstract char GetChar(int i); public abstract long GetChars(int i, long dataIndex, char[] buffer, int bufferIndex, int length); public IDataReader GetData(int i) { return GetDbDataReader(i); } virtual protected DbDataReader GetDbDataReader(int i) { // NOTE: This method is virtual because we're required to implement // it however most providers won't support it. Only the OLE DB // provider supports it right now, and they can override it. throw ADP.NotSupported(); } public abstract string GetDataTypeName(int i); public abstract DateTime GetDateTime(int i); public abstract Decimal GetDecimal(int i); public abstract double GetDouble(int i); public abstract Type GetFieldType(int i); public abstract float GetFloat(int i); public abstract Guid GetGuid(int i); public abstract Int16 GetInt16(int i); public abstract Int32 GetInt32(int i); public abstract Int64 GetInt64(int i); public abstract string GetName(int i); public abstract int GetOrdinal(string name); public abstract string GetString(int i); public abstract object GetValue(int i); public abstract int GetValues(object[] values); public abstract bool IsDBNull(int i); // // ICustomTypeDescriptor // AttributeCollection ICustomTypeDescriptor.GetAttributes() { return new AttributeCollection((Attribute[])null); } string ICustomTypeDescriptor.GetClassName() { return null; } string ICustomTypeDescriptor.GetComponentName() { return null; } TypeConverter ICustomTypeDescriptor.GetConverter() { return null; } EventDescriptor ICustomTypeDescriptor.GetDefaultEvent() { return null; } PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty() { return null; } object ICustomTypeDescriptor.GetEditor(Type editorBaseType) { return null; } EventDescriptorCollection ICustomTypeDescriptor.GetEvents() { return new EventDescriptorCollection(null); } EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { return new EventDescriptorCollection(null); } PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties() { return((ICustomTypeDescriptor)this).GetProperties(null); } PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) { return new PropertyDescriptorCollection(null); } object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor pd) { return this; } } } // 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
- XmlCharCheckingReader.cs
- ItemContainerPattern.cs
- CatalogPartChrome.cs
- VisualBasicSettingsConverter.cs
- OracleNumber.cs
- CapabilitiesPattern.cs
- Compiler.cs
- AssemblyBuilder.cs
- WebPartCloseVerb.cs
- MetadataPropertyCollection.cs
- StorageConditionPropertyMapping.cs
- TemplateDefinition.cs
- ContentPlaceHolder.cs
- SchemaTypeEmitter.cs
- ScriptingProfileServiceSection.cs
- MessageBuffer.cs
- AnimationLayer.cs
- PrivilegedConfigurationManager.cs
- MessageEventSubscriptionService.cs
- SqlTriggerContext.cs
- DocumentSchemaValidator.cs
- smtpconnection.cs
- CqlParserHelpers.cs
- RoutedPropertyChangedEventArgs.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MimeAnyImporter.cs
- ServerValidateEventArgs.cs
- GB18030Encoding.cs
- MsmqIntegrationMessagePool.cs
- HotCommands.cs
- UiaCoreProviderApi.cs
- invalidudtexception.cs
- StyleTypedPropertyAttribute.cs
- EntityTypeBase.cs
- BitmapEffectInputConnector.cs
- ConditionalAttribute.cs
- DataBoundControl.cs
- ItemDragEvent.cs
- DockPattern.cs
- SignedInfo.cs
- GenerateScriptTypeAttribute.cs
- TextServicesLoader.cs
- StandardOleMarshalObject.cs
- DependencyProperty.cs
- SmiRequestExecutor.cs
- TimeoutTimer.cs
- ExpressionCopier.cs
- InkCanvasInnerCanvas.cs
- TrackingStringDictionary.cs
- SuppressIldasmAttribute.cs
- DependencyProperty.cs
- XslNumber.cs
- Viewport3DAutomationPeer.cs
- Token.cs
- XmlHierarchicalDataSourceView.cs
- _LocalDataStoreMgr.cs
- SecurityResources.cs
- DataSourceGroupCollection.cs
- ConcurrentDictionary.cs
- DataGridViewColumnEventArgs.cs
- SafeNativeMemoryHandle.cs
- WmlLinkAdapter.cs
- WebServiceHandler.cs
- XsdDataContractExporter.cs
- WebServiceTypeData.cs
- DictionaryGlobals.cs
- DeferredTextReference.cs
- HtmlTable.cs
- BooleanExpr.cs
- OleDbCommand.cs
- BuildProvidersCompiler.cs
- XmlEntity.cs
- Byte.cs
- PieceDirectory.cs
- DataGridViewCellPaintingEventArgs.cs
- BitVector32.cs
- DragDeltaEventArgs.cs
- RepeatInfo.cs
- SocketAddress.cs
- DesignerTransaction.cs
- UniformGrid.cs
- StringStorage.cs
- OleDbConnectionInternal.cs
- Process.cs
- ExtendedPropertyDescriptor.cs
- CompilerErrorCollection.cs
- FixedSOMPageConstructor.cs
- AnimationTimeline.cs
- HttpHandler.cs
- Brushes.cs
- HitTestDrawingContextWalker.cs
- TextEditorSelection.cs
- ObjRef.cs
- XmlSchemaSimpleTypeUnion.cs
- SubtreeProcessor.cs
- BufferBuilder.cs
- BooleanSwitch.cs
- ToolBarTray.cs
- ToolBarButton.cs
- ContentValidator.cs