SqlConnectionStringBuilder.UserInstance Property
Gets or sets a value that indicates whether to redirect the connection from the default SQL Server Express instance to a runtime-initiated instance running under the account of the caller.
Namespace: System.Data.SqlClient
Assembly: System.Data (in System.Data.dll)
Property Value
Type: System.BooleanThe value of the UserInstance property, or False if none has been supplied.
| Exception | Condition |
|---|---|
| ArgumentNullException | To set the value to null, use Value. |
This property corresponds to the "User Instance" key within the connection string.
Note |
|---|
This feature is available only with the SQL Server Express Edition. For more information on user instances, see Connecting to SQL Server Express User Instances (ADO.NET) and "User Instances for Non-Administrators" in SQL Server Books Online. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note