diaGlobWrapper Help
Assembly: DiaGlobWrapper (in DiaGlobWrapper.dll) Version: 0.0.0.0
Convenience function to invoke before using HangUp(). This is to avoid an exception if the channel is not in the right state.
Namespace:
InkostarAssembly: DiaGlobWrapper (in DiaGlobWrapper.dll) Version: 0.0.0.0
Syntax
| C# |
|---|
public bool CanHangup( Channel CurrentChannel ) |
| Visual Basic (Declaration) |
|---|
Public Function CanHangup ( _ CurrentChannel As Channel _ ) As Boolean |
| Visual C++ |
|---|
public: bool CanHangup( Channel^ CurrentChannel ) |
Parameters
- CurrentChannel
- Type: Inkostar..::.Channel
The Channel on the Dialogic board on which the function is to be executed.
Return Value
Returns True if the channel is in a state where HangUp can be invoked. Otherwise False is returned.
Remarks
This function can be invoked anytime.
Compatibility: All.
On failure this function will generate an exception of type DiaGlobWrapperLibException
Compatibility: All.
On failure this function will generate an exception of type DiaGlobWrapperLibException
Examples
To check if the channel can be issued with a HangUp request:
C#: if (objDevice.CanHangup(ChannelInbound)){objDevice.HangUp(ChannelInbound);}
VB.NET: If objDevice.CanHangup(ChannelInbound) Then objDevice.HangUp(ChannelInbound)
C#: if (objDevice.CanHangup(ChannelInbound)){objDevice.HangUp(ChannelInbound);}
VB.NET: If objDevice.CanHangup(ChannelInbound) Then objDevice.HangUp(ChannelInbound)