Share via


QEStatusBarManager.SetKnownState Method (QEStatusBarKnownStates, Int32, Int32)

Transitions the status bar into one of its known states. This class manages both the icon and the text for those states.

Namespace:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly:  SQLEditors (in SQLEditors.dll)

Syntax

'Declaration
Public Function SetKnownState ( _
    newState As QEStatusBarKnownStates, _
    openConnectionCount As Integer, _
    totalConnectionCount As Integer _
) As String
'Usage
Dim instance As QEStatusBarManager 
Dim newState As QEStatusBarKnownStates 
Dim openConnectionCount As Integer 
Dim totalConnectionCount As Integer 
Dim returnValue As String 

returnValue = instance.SetKnownState(newState, _
    openConnectionCount, totalConnectionCount)
public string SetKnownState(
    QEStatusBarKnownStates newState,
    int openConnectionCount,
    int totalConnectionCount
)
public:
String^ SetKnownState(
    QEStatusBarKnownStates newState, 
    int openConnectionCount, 
    int totalConnectionCount
)
member SetKnownState : 
        newState:QEStatusBarKnownStates * 
        openConnectionCount:int * 
        totalConnectionCount:int -> string
public function SetKnownState(
    newState : QEStatusBarKnownStates, 
    openConnectionCount : int, 
    totalConnectionCount : int
) : String

Parameters

  • openConnectionCount
    Type: System.Int32
    An integer value that specifies the number of open connections.
  • totalConnectionCount
    Type: System.Int32
    An integer value that specifies the total number of connections.

Return Value

Type: System.String
A string that specifies the new status.

See Also

Reference

QEStatusBarManager Class

SetKnownState Overload

Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace