OpenMode Property

Syntax:

public string OpenMode{ get; set; }

Description:

Type: System.String

Gets or sets the current open mode in the connection string. The open mode controls how databases are opened by the SQL engine. Available open modes are "s" (shared mode), "x" (exclusive mode), "r" (read only mode), and "xn" (exclusive with no transactions). The default if unspecified is shared mode.

Exceptions:

Exception Condition
ArgumentException The value specified is not valid (i.e. not one of the listed modes).