Примечание
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
Returns the focused tab's identifier in a focused session, if the session belongs to the channel provider.
Microsoft.CIFramework.getFocusedTab().then(successCallback,errorCallback);
Name | Type | Required | Description |
---|---|---|---|
successCallback | Function | No | A function to call when the operation succeeds. |
errorCallback | Function | No | A function to call when the operation fails. |
Promise with the value as String
Microsoft.CIFramework.getFocusedTab().then(
function success(result) {
console.log(result);
// perform operations on tab id value
},
function (error) {
console.log(error.message);
// handle error conditions
}
);