Print3DManager.TaskRequested 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在创建新的 3D 打印作业时发生。
// Register
event_token TaskRequested(TypedEventHandler<Print3DManager, Print3DTaskRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void TaskRequested(event_token const* cookie) const;
// Revoke with event_revoker
Print3DManager::TaskRequested_revoker TaskRequested(auto_revoke_t, TypedEventHandler<Print3DManager, Print3DTaskRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<Print3DManager,Print3DTaskRequestedEventArgs> TaskRequested;
function onTaskRequested(eventArgs) { /* Your code */ }
print3DManager.addEventListener("taskrequested", onTaskRequested);
print3DManager.removeEventListener("taskrequested", onTaskRequested);
- or -
print3DManager.ontaskrequested = onTaskRequested;
Public Custom Event TaskRequested As TypedEventHandler(Of Print3DManager, Print3DTaskRequestedEventArgs)