Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

OfficeExtension.ClientResult class

Package:
office

Contains the result for methods that return primitive types. The object's value property is retrieved from the document after context.sync() is invoked.

Remarks

Used by

Examples

await Excel.run(async (context) => {
 // Get the count of worksheets in the Excel workbook.
 const workbook = context.workbook;
 let countResult: OfficeExtension.ClientResult<number> = workbook.worksheets.getCount();

 // Sync to populate the countResult object.
 await context.sync();

 // Log the count using the value parameter.
 console.log(countResult.value);
});

Properties

value

The value of the result that is retrieved from the document after context.sync() is invoked.

Property Details

value

The value of the result that is retrieved from the document after context.sync() is invoked.

value: T;

Property Value

T


Feedback

Was this page helpful?