Click or drag to resize

ITpsViewLaunchServicesCloseView Method

Closes a view which has been launched with the method LaunchView.

Namespace:  ABB.Robotics.Tps.Taf
Assembly:  ABB.Robotics.Tps.Taf (in ABB.Robotics.Tps.Taf.dll) Version: 6.5.129.0
Syntax
C#
void CloseView(
	Object cookie
)

Parameters

cookie
Type: SystemObject
The out parameter from the method LaunchView.
Remarks
If the cookie is not up-to-date the method will just return without any action, else the view is closed and removed from the task bar.
Examples
In this example the Backup and Restore view is launched and then closed.
if (_iTpsSite.LaunchView(FpStandardView.BackUpRestore, null, false, out _cookieB) != true)
{
    // take care of the error
}
...
_iTpsSite.CloseView(_cookieB);
See Also