ICtiAgentStateControl.SetAgentState Method
Sets the agent state to a given state.
Namespace: Microsoft.Uii.Desktop.Cti.Core
Assembly: Microsoft.Uii.Desktop.Cti.Core (in Microsoft.Uii.Desktop.Cti.Core.dll)
Usage
'Usage
Dim instance As ICtiAgentStateControl
Dim ctiCallRefCallId As Guid
Dim requestedState As String
Dim targetState As String
Dim overrideCtiLogic As Boolean
Dim returnValue As Boolean
returnValue = instance.SetAgentState(ctiCallRefCallId, requestedState, targetState, overrideCtiLogic)
Syntax
'Declaration
Function SetAgentState ( _
ctiCallRefCallId As Guid, _
requestedState As String, _
targetState As String, _
overrideCtiLogic As Boolean _
) As Boolean
bool SetAgentState (
Guid ctiCallRefCallId,
string requestedState,
string targetState,
bool overrideCtiLogic
)
bool SetAgentState (
Guid ctiCallRefCallId,
String^ requestedState,
String^ targetState,
bool overrideCtiLogic
)
boolean SetAgentState (
Guid ctiCallRefCallId,
String requestedState,
String targetState,
boolean overrideCtiLogic
)
function SetAgentState (
ctiCallRefCallId : Guid,
requestedState : String,
targetState : String,
overrideCtiLogic : boolean
) : boolean
Parameters
- ctiCallRefCallId
Specifies the CTI call reference ID.
- requestedState
Specifies the requested state.
- targetState
Specifies the requested state to go to.
- overrideCtiLogic
Internal only.
Return Value
Type: Boolean
True if the agent state is successfully set, otherwise false.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
ICtiAgentStateControl Interface
ICtiAgentStateControl Members
Microsoft.Uii.Desktop.Cti.Core Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.