SqlConnectionStringBuilder.UserInstance プロパティ

定義

既定の SQL Server Express インスタンスから、呼び出し元のアカウントで実行されているランタイム開始インスタンスに接続をリダイレクトするかどうかを示す値を取得または設定します。

public:
 property bool UserInstance { bool get(); void set(bool value); };
public bool UserInstance { get; set; }
member this.UserInstance : bool with get, set
Public Property UserInstance As Boolean

プロパティ値

UserInstance プロパティの値。指定されていない場合はFalse

例外

値を null に設定するには、 Valueを使用します。

注釈

このプロパティは、接続文字列内の "User Instance" キーに対応します。

Note

この機能は、SQL Server Express Edition でのみ使用できます。 ユーザー インスタンスの詳細については、「SQL Server Express ユーザー インスタンス」を参照してください。

適用対象

こちらもご覧ください