Mode Property

Indicates the available permissions for modifying data in a Connection.

Settings and Return Values

Sets or returns one of the following ConnectModeEnum values:

Constant

Value

Description

adModeUnknown

0

The permissions have not yet been set or cannot be determined. (Default.)

adModeRead

1

Read-only permissions.

adModeWrite

2

Write-only permissions.

adModeReadWrite

3

Read/write permissions.

adModeShareDenyRead

4

Prevents others from opening connection with read permissions.

adModeShareDenyWrite

8

Prevents others from opening connection with write permissions.

adModeShareExclusive

12

Prevents others from opening connection with read/write permissions.

adModeShareDenyNone

16

Prevents others from opening connection with any permissions.

Remarks

Use the Mode property to set or return the access permissions in use by the provider on the current connection. You can set the Mode property only when the Connection object is closed.

Applies To

Connection