Share via


IExcelClient::Cancel method

Cancels any currently running Excel calculations without closing the SOA session.

Syntax

HRESULT Cancel();
Function Cancel() As HRESULT

Parameters

This method has no parameters.

Return value

C++

Returns S_OK unless an exception occurs.

Remarks

When you call this method, the Excel SOA client stops sending requests, directs the broker to stop processing requests that are already queued, and closes the connection to the HPC cluster. If you run the calculation again after you canceled it, the client uses the original SOA session, as long as that session is valid.

Requirements

Product

HPC Pack 2008 R2 Client Utilities

Type library

Microsoft.Hpc.Excel.tlb

See also

IExcelClient

IExcelClient::OpenSession

IExcelClient::Run