共用方式為


ICtiAgentStateManager.SetUnavailable Method

Sets the agent state for the ID of the current agent to unavailable.

Namespace: Microsoft.Uii.Desktop.Cti.Core
Assembly: Microsoft.Uii.Desktop.Cti.Core (in Microsoft.Uii.Desktop.Cti.Core.dll)

Usage

'Usage
Dim instance As ICtiAgentStateManager
Dim reasonCode As String
Dim returnValue As Boolean

returnValue = instance.SetUnavailable(reasonCode)

Syntax

'Declaration
Function SetUnavailable ( _
    reasonCode As String _
) As Boolean
bool SetUnavailable (
    string reasonCode
)
bool SetUnavailable (
    String^ reasonCode
)
boolean SetUnavailable (
    String reasonCode
)
function SetUnavailable (
    reasonCode : String
) : boolean

Parameters

  • reasonCode
    Specifies the reason code for unavailable. Can be empty.

Return Value

Type: Boolean
True if the 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

ICtiAgentStateManager Interface
ICtiAgentStateManager Members
Microsoft.Uii.Desktop.Cti.Core Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.