diaGlobWrapper Help
Places a channel in a state of In Service, Maintenance, Out of Service.

Namespace:  Inkostar
Assembly:  DiaGlobWrapper (in DiaGlobWrapper.dll) Version: 0.0.0.0

Syntax

C#
public void SetServiceState(
	Channel CurrentChannel,
	DiaGlobWrapperCommon..::.ServiceState StateOfService
)
Visual Basic (Declaration)
Public Sub SetServiceState ( _
	CurrentChannel As Channel, _
	StateOfService As DiaGlobWrapperCommon..::.ServiceState _
)
Visual C++
public:
void SetServiceState(
	Channel^ CurrentChannel, 
	DiaGlobWrapperCommon..::.ServiceState StateOfService
)

Parameters

CurrentChannel
Type: Inkostar..::.Channel
The Channel on the Dialogic board on which the function is to be executed.
StateOfService
Type: Inkostar..::.DiaGlobWrapperCommon..::.ServiceState
An enumerated constant to indicate the state of the service to be set: StateInService, StateMaintenance or StateOutOfService.

Remarks

Compatibility: DM3-E1/T1, DM3-ISDN, DM3-Analog, SS7
On Success this function will generate an event of EventReceived.ServiceState.
On failure this function will generate an EventReceived.TaskFailed event or an exception of type DiaGlobWrapperLibException

Examples

To set the inbound channel to a state of StateMaintenance.
C#: objDevice.SetServiceState(ChannelInbound, Inkostar.DiaGlobWrapperCommon.ServiceState.StateMaintenance);
VB.NET: objDevice.SetServiceState(ChannelInbound, Inkostar.DiaGlobWrapperCommon.ServiceState.StateMaintenance)

See Also