Visio.DataRefreshCompleteEventArgs interface
Provides information about the document that raised the DataRefreshComplete event.
Remarks
[ API set: 1.1 ]
Examples
Visio.run(session, function (ctx) {
const document1 = ctx.document;
eventResult1 = document1.onDataRefreshComplete.add(
function (args){
console.log("Data Refresh Result: "+args.success);
});
return ctx.sync().then(function () {
console.log("Success");
});
}).catch(function(error) {
console.log("Error: " + error);
if (error instanceof OfficeExtension.Error) {
console.log("Debug info: " + JSON.stringify(error.debugInfo));
}
});
Properties
document | Gets the document object that raised the DataRefreshComplete event. |
success | Gets the success or failure of the DataRefreshComplete event. |
Property Details
document
Gets the document object that raised the DataRefreshComplete event.
document: Visio.Document;
Property Value
Remarks
[ API set: 1.1 ]
success
Gets the success or failure of the DataRefreshComplete event.
success: boolean;
Property Value
boolean
Remarks
[ API set: 1.1 ]
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