次の方法で共有


ConnectionSettings.MultipleActiveResultSets プロパティ

複数のアクティブな結果セットが許可されるかどうかを示す Boolean プロパティ値を取得または設定します。

名前空間:  Microsoft.SqlServer.Management.Common
アセンブリ:  Microsoft.SqlServer.ConnectionInfo (Microsoft.SqlServer.ConnectionInfo.dll)

構文

'宣言
Public Property MultipleActiveResultSets As Boolean 
    Get 
    Set
'使用
Dim instance As ConnectionSettings 
Dim value As Boolean 

value = instance.MultipleActiveResultSets

instance.MultipleActiveResultSets = value
public bool MultipleActiveResultSets { get; set; }
public:
property bool MultipleActiveResultSets {
    bool get ();
    void set (bool value);
}
member MultipleActiveResultSets : bool with get, set
function get MultipleActiveResultSets () : boolean 
function set MultipleActiveResultSets (value : boolean)

プロパティ値

型: Boolean
複数のアクティブな結果セットが許可されるかどうかを示す Boolean 値です。True の場合、複数のアクティブな結果セットが許可されます。False (既定値) の場合、複数のアクティブな結果セットは許可されません。

使用例

'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Allow multiple active results sets over the connection.
srv.ConnectionContext.MultipleActiveResultSets = True

関連項目

参照

ConnectionSettings クラス

Microsoft.SqlServer.Management.Common 名前空間