OTX Reference  
OpenTestSystem.Otx.Extensions.ComInterface.Actions.DeactivateEthernet Class Reference

Deactivates the ethernet communication More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.ComInterface.Actions.DeactivateEthernet:
Inheritance graph

Public Attributes

ComInterfaceVariable comInterface
 Represents the handle of the communication interface on which the ethernet should be deactivated. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Deactivates the ethernet communication

The DeactivateEthernet action deactivates the ethernet communication on the selected interface.

Note
The appropriate MVCI system operation is MCDInterface::execIOCtrl(PDU_IOCTL_SET_ETH_SWITCH_STATE).
Exceptions
Exceptions.ActivateEthernetExceptionIf EthernetActivation is not supported by the selected ComInterface.
Core.Exceptions.InvalidReferenceExceptionIf the ComInterface variable is uninitialised, or if the interface has been freed by a CloseComInterface action.
Syntax
ComInterface.DeactivateEthernet(ComInterfaceVariable comInterface);
ComInterfaceVariable comInterface
Represents the handle of the communication interface on which the ethernet should be deactivated.
Definition: ComInterface.cs:413
Examples
// Local Declarations
ComInterface.ComInterface ComInterface1;
Exception Exception1;
// Flow
ComInterface.ConnectComInterface(ComInterface1);
ComInterface.ActiveEthernet(ComInterface1);
try
{
ComInterface.DeactiveEthernet(ComInterface1);
}
catch (ComInterface.ActivateEthernetException Exception1)
{
}
ComInterface.CloseComInterface(ComInterface1);

Member Data Documentation

◆ comInterface

ComInterfaceVariable OpenTestSystem.Otx.Extensions.ComInterface.Actions.DeactivateEthernet.comInterface

Represents the handle of the communication interface on which the ethernet should be deactivated.