I have few xhr requests as follows,
var promise=[];
promise[0]=.WinJS.xhr({
type: "POST",
url: "some url",
data: somedata,
headers: { "Content-type": "application/json; charset=utf-8" },
}).then(function(success){}, function(error){});
promise[1]=.WinJS.xhr({
type: "POST",
url: "some url",
data: somedata,
headers: { "Content-type": "application/json; charset=utf-8" },
}).then(function(success){}, function(error){});
promise[2]=...
.
.
.
Now i will cancel few requests for e.g promise[0], promise[5],
promise[0].cancel();
promise[5].cancel();
Now on join I want to know which all requests are cancelled,
WinJS.Promise.join(promise).done(function(xhr){
});