ADO對象模型的概要

////////////////////////////////////////////////////////////

ADO對象模型的概要

下圖是ADO模型中的對象示意圖,白色的是Collection。

 

ADO Object Summary

Object

Description

Command

Defines a specific command that you intend to execute against a data source.

Connection

Represents an open connection to a data source.

DataControl (RDS)

Binds a data query Recordset to one or more controls (for example, a text box, grid control, or combo box) to display the Recordset data on a Web page.

DataFactory (RDS Server)

Implements methods that provide read/write data access to specified data sources for client-side applications.

DataSpace (RDS)

Creates client-side proxies to custom business objects located on the middle tier.

Error

Contains details about data access errors that pertain to a single operation involving the provider.

Field

Represents a column of data with a common data type.

Parameter

Represents a parameter or argument associated with a Command object based on a parameterized query or stored procedure.

Property

Represents a dynamic characteristic of an ADO object that is defined by the provider.

Record

Represents a row of a Recordset, or a directory or file in a file system.

Recordset

Represents the entire set of records from a base table or the results of an executed command. At any time, the Recordset object refers to only a single record within the set as the current record.

Stream

Represents a binary stream of data.

ADO Collection Summary

Collection

Description

Errors

Contains all the Error objects created in response to a single provider-related failure.

Fields

Contains all the Field objects of a Recordset object.

Parameters

Contains all the Parameter objects of a Command object.

Properties

Contains all the Property objects for a specific instance of an object.

ADO Property Summary

Property

Description

AbsolutePage

Indicates on which page the current record resides.

AbsolutePosition

Indicates the ordinal position of a Recordset object's current record.

ActiveCommand

Indicates the Command object that created the associated Recordset object.

ActiveConnection

Indicates to which Connection object the specified Command, Recordset, or Record object currently belongs.

ActualSize

Indicates the actual length of a field's value.

Attributes

Indicates one or more characteristics of an object.

BOF and EOF

BOF indicates that the current record position is before the first record in a Recordset object.
EOF
indicates that the current record position is after the last record in a Recordset object.

Bookmark

Indicates a bookmark that uniquely identifies the current record in a Recordset object or sets the current record in a Recordset object to the record identified by a valid bookmark.

CacheSize

Indicates the number of records from a Recordset object that are cached locally in memory.

CharSet

Indicates the character set into which the contents of a text Stream should be translated.

CommandText

Indicates the text of a command to be issued against a provider.

CommandTimeout

Indicates how long to wait while executing a command before terminating the attempt and generating an error.

CommandType

Indicates the type of a Command object.

Connect (RDS)

Indicates the database name from which the query and update operations are run.

ConnectionString Property

Indicates the information used to establish a connection to a data source.

ConnectionTimeout

Indicates how long to wait while establishing a connection before terminating the attempt and generating an error.

Count

Indicates the number of objects in a collection.

CursorLocation

Indicates the location of the cursor service.

CursorType

Indicates the type of cursor used in a Recordset object.

DataMember

Indicates the name of the data member that will be retrieved from the object referenced by the DataSource property.

DataSource

Indicates an object that contains data to be represented as a Recordset object.

DefaultDatabase

Indicates the default database for a Connection object.

DefinedSize

Indicates the data capacity of a Field object.

Description

Describes an Error object.

Direction

Indicates whether the Parameter represents an input parameter, an output parameter, or both, or if the parameter is the return value from a stored procedure.

EditMode

Indicates the editing status of the current record.

EOS

Indicates whether the current position is at the end of the stream.

ExecuteOptions (RDS)

Indicates whether asynchronous execution is enabled.

FetchOptions (RDS)

Indicates the type of asynchronous fetching.

Filter

Indicates a filter for data in a Recordset.

FilterColumn (RDS)

Indicates the column on which to evaluate the filter criteria.

FilterCriterion (RDS)

Indicates the evaluation operator to use in the filter value.

FilterValue (RDS)

Indicates the value to filter records.

Handler (RDS)

Indicates the name of a server-side customization program (handler) that extends the functionality of the RDSServer.DataFactory, and any parameters used by the handler.

HelpContext and HelpFile

Indicates the help file and topic associated with an Error object.

HelpContextID returns a context ID, as a Long value, for a topic in a Help file.
HelpFile
returns a String value that evaluates to a fully resolved path to a Help file.

Index

Indicates the name of the index currently in effect for a Recordset object.

InternetTimeout (RDS)

Indicates the number of milliseconds to wait before a request times out.

IsolationLevel

Indicates the level of isolation for a Connection object.

Item

Indicates a specific member of a collection, by name or ordinal number.

LineSeparator

Indicates the binary character to be used as the line separator in text Stream objects.

LockType

Indicates the type of locks placed on records during editing.

MarshalOptions

Indicates which records are to be marshaled back to the server.

MaxRecords

Indicates the maximum number of records to return to a Recordset from a query.

Mode

Indicates the available permissions for modifying data in a Connection, Record, or Stream object.

Name

Indicates the name of an object.

NativeError

Indicates the provider-specific error code for a given Error object.

Number

Indicates the number that uniquely identifies an Error object.

NumericScale

Indicates the scale of numeric values in a Parameter or Field object.

OriginalValue

Indicates the value of a Field that existed in the record before any changes were made.

PageCount

Indicates how many pages of data the Recordset object contains.

PageSize

Indicates how many records constitute one page in the Recordset.

ParentURL

Indicates an absolute URL string that points to the parent Record of the current Record object.

Position

Indicates the current position within a Stream object.

Precision

Indicates the degree of precision for numeric values in a Parameter object or for numeric Field objects.

Prepared

Indicates whether to save a compiled version of a command before execution.

Provider

Indicates the name of the provider for a Connection object.

ReadyState (RDS)

Indicates the progress of a DataControl object as it fetches data into its Recordset object.

RecordCount

Indicates the number of records in a Recordset object.

Recordset and SourceRecordset (RDS)

Indicates the Recordset object returned from a custom business object.

RecordType

Indicates the type of Record object.

Server (RDS)

Indicates the Internet Information Services (IIS) name and communication protocol.

Size

Indicates the maximum size, in bytes or characters, of a Parameter object.

Size (ADO Stream)

Indicates the total size of the stream in number of bytes.

Sort

Indicates one or more field names on which the Recordset is sorted, and whether each field is sorted in ascending or descending order.

SortColumn (RDS)

Indicates by which column to sort the records.

SortDirection (RDS)

Indicates whether a sort order is ascending or descending.

Source (ADO Error)

Indicates the name of the object or application that originally generated an error.

Source (ADO Record)

Indicates the entity represented by the Record object.

Source (ADO Recordset)

Indicates the source for the data in a Recordset object

SQL (RDS)

Indicates the query string used to retrieve the Recordset.

SQLState

Indicates the SQL state for a given Error object.

State

Indicates for all applicable objects whether the state of the object is open or closed.
Indicates for all applicable objects executing an asynchronous method, whether the current state of the object is connecting, executing, or retrieving

Status (ADO Field)

Indicates the status of a Field object.

Status (ADO Recordset)

Indicates the status of the current record with respect to batch updates or other bulk operations.

StayInSync

Indicates, in a hierarchical Recordset object, whether the reference to the underlying child records (that is, the chapter) changes when the parent row position changes.

Type

Indicates the operational type or data type of a Parameter, Field, or Property object.

Type (ADO Stream)

Indicates the type of data contained in the Stream (binary or text).

UnderlyingValue

Indicates a Field object's current value in the database.

URL (RDS)

Indicates a string that contains a relative or absolute URL.

Value

Indicates the value assigned to a Field, Parameter, or Property object.

Version

Indicates the ADO version number.

ADO Dynamic Property Summary

Dynamic properties can be added to the Properties collections of the Connection, Command, or Recordset objects. The source for these properties is either a data provider, such as the OLE DB Provider for SQL Server, or a service provider, such as the Microsoft Cursor Service for OLE DB. Refer to the appropriate data provider or service provider documentation for more information about a specific dynamic property.

The ADO Dynamic Property Index provides a cross-reference between the ADO and OLE DB names for each standard OLE DB provider dynamic property.

The following dynamic properties are of special interest, and are also documented in the sources mentioned above. Special functionality with ADO is documented in the ADO help topics listed below.

Property

Description

Optimize

Specifies whether an index should be created on this field.

Prompt

Specifies whether the OLE DB provider should prompt the user for initialization information.

Reshape Name

Specifies a name for the Recordset object.

Resync Command

Specifies a user-supplied command string that the Resync method issues to refresh the data in the table named in the Unique Table dynamic property.

Unique Table, Unique Schema, Unique Catalog

Unique Table specifies the name of the base table upon which updates, insertions, and deletions are allowed.

Unique Schema specifies the schema, or name of the owner of the table.

Unique Catalog specifies the catalog, or name of the database containing the table.

Update Resync

Specifies whether the UpdateBatch method is followed by an implicit Resync method operation, and if so, the scope of that operation.

ADO Method Summary

Method

Description

AddNew

Creates a new record for an updatable Recordset object.

Append

Appends an object to a collection. If the collection is Fields, a new Field object may be created before it is appended to the collection.

AppendChunk

Appends data to a large text or binary data Field, or to a Parameter object.

BeginTrans, CommitTrans, and RollbackTrans

Manages transaction processing within a Connection object as follows:

BeginTrans Begins a new transaction.
CommitTrans
Saves any changes and ends the current transaction. It may also start a new transaction.
RollbackTrans
Cancels any changes and ends the current transaction. It may also start a new transaction.

Cancel (ADO)

Cancels execution of a pending, asynchronous method call.

Cancel (RDS)

Cancels execution of a pending, asynchronous method call.

CancelBatch

Cancels a pending batch update.

CancelUpdate (ADO)

Cancels any changes made to the current or new row of a Recordset object, or the Fields collection of a Record object, before calling the Update method.

CancelUpdate (RDS)

Cancels any changes made to the current or new row of a Recordset object.

Clear

Removes all the Error objects from the Errors collection.

Clone

Creates a duplicate Recordset object from an existing Recordset object. Optionally, specifies that the clone be read-only.

Close

Closes an open object and any dependent objects.

CompareBookmarks

Compares two bookmarks and returns an indication of their relative values.

ConvertToString (RDS)

Converts a Recordset to a MIME string that represents the recordset data.

CopyRecord

Copies a file or directory, and its contents, to another location.

CopyTo

Copies the specified number of characters or bytes (depending on Type) in the Stream to another Stream object.

CreateObject (RDS)

Creates the proxy for the target business object and returns a pointer to it.

CreateParameter

Creates a new Parameter object with the specified properties.

CreateRecordset (RDS)

Creates an empty, disconnected Recordset.

Delete (ADO Parameters Collection)

Deletes an object from the Parameters collection.

Delete (ADO Fields Collection)

Deletes an object from the Fields collection.

Delete (ADO Recordset)

Deletes the current record or a group of records.

DeleteRecord

Deletes a file or directory, and all its subdirectories.

Execute (ADO Command)

Executes the query, SQL statement, or stored procedure specified in the CommandText property.

Execute (ADO Connection)

Executes the specified query, SQL statement, stored procedure, or provider-specific text.

Find

Searches a Recordset for the row that satisfies the specified criteria.

Flush

Forces the contents of the Stream remaining in the ADO buffer to the underlying object with which the Stream is associated.

GetChildren

Returns a Recordset whose rows represent the files and subdirectories in the directory represented by this Record.

GetChunk

Returns all, or a portion of, the contents of a large text or binary data Field object.

GetRows

Retrieves multiple records of a Recordset object into an array.

GetString

Returns the Recordset as a string.

LoadFromFile

Loads the contents of an existing file into a Stream.

Move

Moves the position of the current record in a Recordset object.

MoveFirst, MoveLast, MoveNext, and MovePrevious (ADO)

Moves to the first, last, next, or previous record in a specified Recordset object and makes that record the current record.

MoveFirst, MoveLast, MoveNext, MovePrevious (RDS)

Moves to the first, last, next, or previous record in a specified Recordset object.

MoveRecord

Moves a file, or a directory and its contents, to another location.

NextRecordset

Clears the current Recordset object and returns the next Recordset by advancing through a series of commands.

Open (ADO Connection)

Opens a connection to a data source.

Open (ADO Record)

Opens an existing Record object, or creates a new file or directory.

Open (ADO Recordset)

Opens a cursor.

Open (ADO Stream)

Opens a Stream object to manipulate streams of binary or text data.

OpenSchema

Obtains database schema information from the provider.

Query (RDS)

Uses a valid SQL query string to return a Recordset.

Read

Reads a specified number of bytes from a Stream object.

ReadText

Reads a specified number of characters from a text Stream object.

Refresh (ADO)

Updates the objects in a collection to reflect objects available from, and specific to, the provider.

Refresh (RDS)

Requeries the data source specified in the Connect property and updates the query results.

Requery

Updates the data in a Recordset object by re-executing the query on which the object is based.

Reset (RDS)

Executes the sort or filter on a client-side Recordset, based on the specified sort and filter properties.

Resync

Refreshes the data in the current Recordset object, or Fields collection of a Record object, from the underlying database.

Save

Saves the Recordset in a file or Stream object.

SaveToFile

Saves the binary contents of a Stream to a file.

Seek

Searches the index of a Recordset to quickly locate the row that matches the specified values, and changes the current row position to that row.

SetEOS

Sets the position that is the end of the stream.

SkipLine

Skips one entire line when reading a text stream.

SubmitChanges (RDS)

Submits pending changes of the locally cached and updatable Recordset to the data source specified in the Connect property.

Supports

Determines whether a specified Recordset object supports a particular type of functionality.

Update

Saves any changes you make to the current row of a Recordset object, or the Fields collection of a Record object.

UpdateBatch

Writes all pending batch updates to disk.

Write

Writes binary data to a Stream object.

WriteText

Writes a specified text string to a Stream object.

ADO Event Summary

Event

Description

BeginTransComplete

Called after the BeginTrans operation.

CommitTransComplete

Called after the CommitTrans operation.

ConnectComplete

Called after a connection starts.

Disconnect

Called after a connection ends.

EndOfRecordset

Called when there is an attempt to move to a row past the end of the Recordset.

ExecuteComplete

Called after a command has finished executing.

FetchComplete

Called after all the records in a lengthy asynchronous operation have been retrieved into the Recordset.

FetchProgress

Called periodically during a lengthy asynchronous operation to report how many rows have currently been retrieved into the Recordset.

FieldChangeComplete

Called after the value of one or more Field objects has changed.

InfoMessage

Called whenever a warning occurs during a ConnectionEvent operation.

MoveComplete

Called after the current position in the Recordset changes.

onError (RDS)

Called whenever an error occurs during an operation.

onReadyStateChange (RDS)

Called whenever the value of the ReadyState property changes.

RecordChangeComplete

Called after one or more records change.

RecordsetChangeComplete

Called after the Recordset has changed.

RollbackTransComplete

Called after the RollbackTrans operation.

WillChangeField

Called before a pending operation changes the value of one or more Field objects in the Recordset.

WillChangeRecord

Called before one or more records (rows) in the Recordset change.

WillChangeRecordset

Called before a pending operation changes the Recordset.

WillConnect

Called before a connection starts.

WillExecute

Called just before a pending command executes on this connection and affords the user an opportunity to examine and modify the pending execution parameters.

WillMove

The WillMove event is called before a pending operation changes the current position in the Recordset.

ADO Enumerated Constant Summary

Enumeration

Description

ADCPROP_ASYNCTHREADPRIORITY_ENUM

For an RDS Recordset object, specifies the execution priority of the asynchronous thread that retrieves data.

ADCPROP_AUTORECALC_ENUM

Specifies when the MSDataShape provider re-calculates aggregate and calculated columns in a hierarchical Recordset.

ADCPROP_UPDATECRITERIA_ENUM

Specifies which fields can be used to detect conflicts during an optimistic update of a row of the data source with a Recordset object.

ADCPROP_UPDATERESYNC_ENUM

Specifies whether the UpdateBatch method is followed by an implicit Resync method operation and if so, the scope of that operation.

AffectEnum

Specifies which records are affected by an operation.

BookmarkEnum

Specifies a bookmark indicating where the operation should begin.

CommandTypeEnum

Specifies how a command argument should be interpreted.

CompareEnum

Specifies the relative position of two records represented by their bookmarks.

ConnectModeEnum

Specifies the available permissions for modifying data in a Connection, opening a Record, or specifying values for the Mode property of the Record and Stream objects.

ConnectOptionEnum

Specifies whether the Open method of a Connection object should return after (synchronously) or before (asynchronously) the connection is established.

ConnectPromptEnum

Specifies whether a dialog box should be displayed to prompt for missing parameters when opening a connection to an ODBC data source.

CopyRecordOptionsEnum

Specifies the behavior of the CopyRecord method.

CursorLocationEnum

Specifies the location of the cursor engine.

CursorOptionEnum

Specifies what functionality the Supports method should test for.

CursorTypeEnum

Specifies the type of cursor used in a Recordset object.

DataTypeEnum

Specifies the data type of a Field, Parameter, or Property.

EditModeEnum

Specifies the editing status of a record.

ErrorValueEnum

Specifies the type of ADO run-time error.

EventReasonEnum

Specifies the reason that caused an event to occur.

EventStatusEnum

Specifies the current status of the execution of an event.

ExecuteOptionEnum

Specifies how a provider should execute a command.

FieldEnum

Specifies the special fields referenced in a Record object's Fields collection.

FieldAttributeEnum

Specifies one or more attributes of a Field object.

FilterGroupEnum

Specifies the group of records to be filtered from a Recordset.

GetRowsOptionEnum

Specifies how many records to retrieve from a Recordset.

IsolationLevelEnum

Specifies the level of transaction isolation for a Connection object.

LineSeparatorsEnum

Specifies the character used as a line separator in text Stream objects.

LockTypeEnum

Specifies the type of lock placed on records during editing.

MarshalOptionsEnum

Specifies which records should be returned to the server.

MoveRecordOptionsEnum

Specifies the behavior of the Record object MoveRecord method.

ObjectStateEnum

Specifies whether an object is open or closed, connecting to a data source, executing a command, or fetching data.

ParameterAttributesEnum

Specifies the attributes of a Parameter object.

ParameterDirectionEnum

Specifies whether the Parameter represents an input parameter, an output parameter, or both, or if the parameter is the return value from a stored procedure.

PersistFormatEnum

Specifies the format in which to save a Recordset.

PositionEnum

Specifies the current position of the record pointer within a Recordset.

PropertyAttributesEnum

Specifies the attributes of a Property object.

RecordCreateOptionsEnum

Specifies for the Record object Open method whether an existing Record should be opened, or a new Record should be created.

RecordOpenOptionsEnum

Specifies options for opening a Record. These values may be combined by using an OR operator.

RecordStatusEnum

Specifies the status of a record with regard to batch updates and other bulk operations.

RecordTypeEnum

Specifies the type of Record object.

ResyncEnum

Specifies whether underlying values are overwritten by a call to Resync.

SaveOptionsEnum

Specifies whether a file should be created or overwritten when saving from a Stream object. The values can be combined with an AND operator.

SchemaEnum

Specifies the type of schema Recordset that the OpenSchema method retrieves.

SearchDirectionEnum

Specifies the direction of a record search within a Recordset.

SeekEnum

Specifies the type of Seek to execute.

StreamOpenOptionsEnum

Specifies options for opening a Stream object. The values can be combined with an AND operator.

StreamReadEnum

Specifies whether the whole stream or the next line should be read from a Stream object.

StreamTypeEnum

Specifies the type of data stored in a Stream object.

StreamWriteEnum

Specifies whether a line separator is appended to the string written to a Stream object.

StringFormatEnum

Specifies the format when retrieving a Recordset as a string.

XactAttributeEnum

Specifies the transaction attributes of a Connection object.

ADO Error Code List

ErrorValueEnum

Specifies the type of ADO run-time error.

Three forms of the error number are listed:

  • Positive decimalthe low two bytes of the full number in decimal format. This number is displayed in the default Visual Basic error message dialog box. For example, Run-time error '3707'.

  • Negative decimalThe decimal translation of the full error number.

  • HexadecimalThe hexadecimal representation of the full error number. The Windows facility code is in the fourth digit. The facility code for ADO error numbers is A. For example: 0x800A0E7B.

Note   OLE DB errors may be passed to your ADO application. Typically, these can be identified by a Windows facility code of 4. For example, 0x8004.... For more information about these numbers, see Chapter 16 of the OLE DB Programmer's Reference.

Constant

Value

Description

adErrBoundToCommand

3707
-2146824581
0x800A0E7B

Cannot change the ActiveConnection property of a Recordset object which has a Command object as its source.

adErrCannotComplete

3732
-2146824556
0x800A0E94

Server cannot complete the operation.

adErrCantChangeConnection

3748
-2146824540
0x800A0EA4

Connection was denied. New connection you requested has different characteristics than the one already in use.

adErrCantChangeProvider

3220
-2146825068
0X800A0C94

Supplied provider is different from the one already in use.

adErrCantConvertvalue

3724
-2146824564
0x800A0E8C

Data value cannot be converted for reasons other than sign mismatch or data overflow. For example, conversion would have truncated data.

adErrCantCreate

3725
-2146824563
0x800A0E8D

Data value cannot be set or retrieved because the field data type was unknown, or the provider had insufficient resources to perform the operation.

adErrCatalogNotSet

3747
-2146824541
0x800A0EA3

Operation requires a valid ParentCatalog.

adErrColumnNotOnThisRow

3726
-2146824562
0x800A0E8E

Record does not contain this field.

adErrDataConversion

3421
-2146824867
0x800A0D5D

Application uses a value of the wrong type for the current operation.

adErrDataOverflow

3721
-2146824567
0x800A0E89

Data value is too large to be represented by the field data type.

adErrDelResOutOfScope

3738
-2146824550
0x800A0E9A

URL of the object to be deleted is outside the scope of the current record.

adErrDenyNotSupported

3750
-2146824538
0x800A0EA6

Provider does not support sharing restrictions.

adErrDenyTypeNotSupported

3751
-2146824537
0x800A0EA7

Provider does not support the requested kind of sharing restriction.

adErrFeatureNotAvailable

3251
-2146825037
0x800A0CB3

Object or provider is not capable of performing requested operation.

adErrFieldsUpdateFailed

3749
-2146824539
0x800A0EA5

Fields update failed. For further information, examine the Status property of individual field objects.

adErrIllegalOperation

3219
-2146825069
0x800A0C93

Operation is not allowed in this context.

adErrIntegrityViolation

3719
-2146824569
0x800A0E87

Data value conflicts with the integrity constraints of the field.

adErrInTransaction

3246
-2146825042
0x800A0CAE

Connection object cannot be explicitly closed while in a transaction.

adErrInvalidArgument

3001
-2146825287
0x800A0BB9

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

adErrInvalidConnection

3709
-2146824579
0x800A0E7D

Operation is not allowed on an object referencing a closed or invalid connection.

adErrInvalidParamInfo

3708
-2146824580
0x800A0E7C

Parameter object is improperly defined. Inconsistent or incomplete information was provided.

adErrInvalidTransaction

3714
-2146824574
0x800A0E82

Coordinating transaction is invalid or has not started.

adErrInvalidURL

3729
-2146824559
0x800A0E91

URL contains invalid characters. Make sure the URL is typed correctly.

adErrItemNotFound

3265
-2146825023
0x800A0CC1

Item cannot be found in the collection corresponding to the requested name or ordinal.

adErrNoCurrentRecord

3021
-2146825267
0x800A0BCD

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

adErrNotExecuting

3715
-2146824573
0x800A0E83

Operation cannot be performed while not executing.

adErrNotReentrant

3710
-2146824578
0x800A0E7E

Operation cannot be performed while processing event.

adErrObjectClosed

3704
-2146824584
0x800A0E78

Operation is not allowed when the object is closed.

adErrObjectInCollection

3367
-2146824921
0x800A0D27

Object is already in collection. Cannot append.

adErrObjectNotSet

3420
-2146824868
0x800A0D5C

Object is no longer valid.

adErrObjectOpen

3705
-2146824583
0x800A0E79

Operation is not allowed when the object is open.

adErrOpeningFile

3002
-2146825286
0x800A0BBA

File could not be opened.

adErrOperationCancelled

3712
-2146824576
0x800A0E80

Operation has been cancelled by the user.

adErrOutOfSpace

3734
-2146824554
0x800A0E96

Operation cannot be performed. Provider cannot obtain enough storage space.

adErrPermissionDenied

3720
-2146824568
0x800A0E88

Insufficent permission prevents writing to the field.

adErrPropConflicting

3742
-2146824546
0x800A0E9E

Property value conflicts with a related property.

adErrPropInvalidColumn

3739
-2146824549
0x800A0E9B

Property cannot apply to the specified field.

adErrPropInvalidOption

3740
-2146824548
0x800A0E9C

Property attribute is invalid.

adErrPropInvalidValue

3741
-2146824547
0x800A0E9D

Property value is invalid. Make sure the value is typed correctly.

adErrPropNotAllSettable

3743
-2146824545
0x800A0E9F

Property is read-only or cannot be set.

adErrPropNotSet

3744
-2146824544
0x800A0EA0

Optional property value was not set.

adErrPropNotSettable

3745
-2146824543
0x800A0EA1

Read-only property value was not set.

adErrPropNotSupported

3746
-2146824542
0x800A0EA2

Provider does not support the property.

adErrProviderFailed

3000
-2146825288
0x800A0BB8

Provider failed to perform the requested operation.

adErrProviderNotFound

3706
-2146824582
0x800A0E7A

Provider cannot be found. It may not be properly installed.

adErrReadFile

3003
-2146825285
0x800A0BBB

File could not be read.

adErrResourceExists

3731
-2146824557
0x800A0E93

Copy operation cannot be performed. Object named by destination URL already exists. Specify adCopyOverwrite to replace the object.

adErrResourceLocked

3730
-2146824558
0x800A0E92

Object represented by the specified URL is locked by one or more other processes. Wait until the process has finished and attempt the operation again.

adErrResourceOutOfScope

3735
-2146824553
0x800A0E97

Source or destination URL is outside the scope of the current record.

adErrSchemaViolation

3722
-2146824566
0x800A0E8A

Data value conflicts with the data type or constraints of the field.

adErrSignMismatch

3723
-2146824565
0x800A0E8B

Conversion failed because the data value was signed and the field data type used by the provider was unsigned.

adErrStillConnecting

3713
-2146824575
0x800A0E81

Operation cannot be performed while connecting aynchronously.

adErrStillExecuting

3711
-2146824577
0x800A0E7F

Operation cannot be performed while executing asynchronously.

adErrTreePermissionDenied

3728
-2146824560
0x800A0E90

Permissions are insufficient to access tree or subtree.

adErrUnavailable

3736
-2146824552
0x800A0E98

Operation failed to complete and the status is unavailable. The field may be unavailable or the operation was not attempted.

adErrUnsafeOperation

3716
-2146824572
0x800A0E84

Safety settings on this computer prohibit accessing a data source on another domain.

adErrURLDoesNotExist

3727
-2146824561
0x800A0E8F

Either the source URL or the parent of the destination URL does not exist.

adErrURLNamedRowDoesNotExist

3737
-2146824551
0x800A0E99

Record named by this URL does not exist.

adErrVolumeNotFound

3733
-2146824555
0x800A0E95

Provider cannot locate the storage device indicated by the URL. Make sure the URL is typed correctly.

adErrWriteFile

3004
-2146825284
0x800A0BBC

Write to file failed.

adWrnSecurityDialog

3717
-2146824571
0x800A0E85

For internal use only. Don't use.

adWrnSecurityDialogHeader

3718
-2146824570
0x800A0E86

For internal use only. Don't use.

 

 

 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章