ConnectionSettings.MultipleActiveResultSets-Eigenschaft
Ruft den Boolean-Eigenschaftswert ab, der angibt, ob mehr als ein aktives Resultset zulässig ist, oder legt ihn fest.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Declaration
Public Property MultipleActiveResultSets As Boolean
Get
Set
'Usage
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)
Eigenschaftswert
Typ: Boolean
Ein Boolean-Wert, der angibt, ob mehr als ein aktives Resultset zulässig ist.True gibt an, dass mehrere aktive Resultsets zulässig sind.Der Standardwert False gibt an, dass mehrere aktive Resultsets unzulässig sind.
Beispiele
'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