CalculateRequest Constructor (String, Byte[], Nullable)

Initializes a new instance of the CalculateRequest class without the specified values for the name of the macro in the Excel workbook that should perform the calculation, the input for that macro, and the date that the Excel workbook was last saved.


Namespace: Microsoft.Hpc.Excel.ExcelService
Assembly: Microsoft.Hpc.Excel (in Microsoft.Hpc.Excel.dll)

'Usage
Dim macroName As String
Dim inputs As Byte()
Dim lastSaveDate As Nullable(Of DateTime)

Dim instance As New CalculateRequest(macroName, inputs, lastSaveDate)

public CalculateRequest (
	string macroName,
	byte[] inputs,
	Nullable<DateTime> lastSaveDate
)
public CalculateRequest (
	String macroName, 
	byte[] inputs, 
	Nullable<DateTime> lastSaveDate
)
public function CalculateRequest (
	macroName : String, 
	inputs : byte[], 
	lastSaveDate : Nullable<DateTime>
)

Parameters

macroName

String that specifies the name of the macro in an Excel workbook that the built-in Excel SOA service should use to perform the requested calculation.

inputs

An array of bytes that is a serialized form of a WorkItem object that represents the values for the parameters that you want to pass as input to the macro that performs the calculation.

lastSaveDate

A DateTime structure that specifies the date and time that the Excel Workbook should have most recently been saved in order for the calculation to proceed, or null if the calculation should proceed regardless of the date and the time that the Excel workbook was last saved.

Exception typeCondition
ArgumentException

Indicates that the value of a parameter was incorrect. This exception can occur if the date and time that the Excel workbook was actually last saved differs from the value specified for the lastSaveDate parameter.

To send the request to the built-in Excel SOA service, call the SendRequest method with a type parameter of CalculateRequest and the request parameter set to the instance of the CalculateRequest class that represents the request that you want to send.

Platform Note: This constructor was introduced in Windows HPC Server 2008 R2 and is not supported in previous versions.


Development Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, with HPC Pack Client Utilities




Build Date:

2013-04-22
Show: