Edit

Share via


WorkItem Class

Definition

Represents a list of parameter values that you want to pass to an Excel macro when performing a calculation for a workbook or a list of results from a calculation.

public class WorkItem : System.Runtime.Serialization.ISerializable
type WorkItem = class
    interface ISerializable
Public Class WorkItem
Implements ISerializable
Inheritance
WorkItem
Implements

Constructors

WorkItem()

Initializes a new instance of the WorkItem class without information about any values for macro parameters.

WorkItem(Object[])

Initializes a new instance of the WorkItem class with an array of objects that specify values for the parameters of an Excel macro.

WorkItem(SerializationInfo, StreamingContext)

Methods

Deserialize(Byte[])

Deserializes the specified string by converting it to the equivalent WorkItem object.

Get<T>(Int32)

Gets the object at the specified position in the list of objects that the WorkItem object contains.

GetAll()

Gets all of the objects that the WorkItem object contains.

GetObjectData(SerializationInfo, StreamingContext)
Insert<T>(Int32, T)

Inserts an object of the specified type at the specified position in the array of objects that the WorkItem object contains.

Serialize(WorkItem)

Serializes the specified WorkItem object as an array of bytes that you can use as part of a CalculateRequest object.

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Applies to