Connection.IConnection.ChangeState Method
.NET Framework 4
Namespace: Microsoft.AspNet.SignalR.Client
Assembly: Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)
Syntax
'Declaration
Private Function ChangeState ( _
oldState As ConnectionState, _
newState As ConnectionState _
) As Boolean Implements IConnection.ChangeState
'Usage
Dim instance As Connection
Dim oldState As ConnectionState
Dim newState As ConnectionState
Dim returnValue As Boolean
returnValue = CType(instance, IConnection).ChangeState(oldState, _
newState)
bool IConnection.ChangeState(
ConnectionState oldState,
ConnectionState newState
)
private:
virtual bool ChangeState(
ConnectionState oldState,
ConnectionState newState
) sealed = IConnection::ChangeState
private abstract ChangeState :
oldState:ConnectionState *
newState:ConnectionState -> bool
private override ChangeState :
oldState:ConnectionState *
newState:ConnectionState -> bool
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
- oldState
Type: Microsoft.AspNet.SignalR.Client.ConnectionState
- newState
Type: Microsoft.AspNet.SignalR.Client.ConnectionState
Return Value
Type: System.Boolean
Returns Boolean.
Implements
IConnection.ChangeState(ConnectionState, ConnectionState)