OfficeExtension.ClientResult class
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
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 |
Property Details
value
The value of the result that is retrieved from the document after context.sync()
is invoked.
value: T;
Property Value
T
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins