Click or drag to resize
HostedAddInBaseCanDeactivate Method
Called by RobotStudio user interface code, to let you tell the user if your PowerPac can be deactivated or not.

Namespace:  ABB.Robotics.RobotStudio
Assembly:  ABB.Robotics.RobotStudio (in ABB.Robotics.RobotStudio.dll) Version: 7.0.8747.636
Syntax
C#
public virtual bool CanDeactivate(
	out string reason
)

Parameters

reason
Type: SystemString
If you return false, then specify a reason using this paramter.

Return Value

Type: Boolean
True if the PowerPac can be activated, false if not.
Remarks
The default implementation always returns true, which should be sufficient for most PowerPacs. This method will be called frequently. Only return false if your in the middle of along running operation that cannot easily be interrupted.
Version Information

Supported in: 1.0.0.0
See Also