Share via


IExcelClient::CloseSession method

Closes the session that you opened by calling the IExcelClient::OpenSession method (subject to the optionally specified time-out period), and closes all instances of Excel that are running on the compute nodes.

Syntax

HRESULT CloseSession(
  [in, optional] VARIANT timeoutMilliseconds,
  [in, optional] Variant timeoutMilliseconds
);
Function CloseSession( _
  [ ByVal timeoutMilliseconds As VARIANT ], _
  [ ByVal timeoutMilliseconds As Variant ] _
) As HRESULT

Parameters

  • timeoutMilliseconds [in, optional]

    C++

    VARIANT that specifies an integer that indicates the length of time in milliseconds that the method should wait for the SOA session to close. The default time-out period is 120,000 milliseconds (two minutes).

    VB

    Variant that specifies an integer that indicates the length of time in milliseconds that the method should wait for the SOA session to close. The default time-out period is 120,000 milliseconds (two minutes).

Return value

C++

Returns S_OK unless an exception occurs.

Requirements

Product

HPC Pack 2008 R2 Client Utilities

Type library

Microsoft.Hpc.Excel.tlb

See also

IExcelClient

IExcelClient::OpenSession