共用方式為


ISysStorageProviderEventSource.EventReceived 事件

定義

僅供內部使用。

[重要]這些介面存在,讓 Windows 檔案 應用程式可以實作這些介面,以便與其他檔案提供者整合。 這些介面不適用於一般用途,而且您撰寫的任何實作都不會由作業系統 (OS) 呼叫。

// Register
event_token EventReceived(TypedEventHandler<ISysStorageProviderEventSource, SysStorageProviderEventReceivedEventArgs const&> const& handler) const;

// Revoke with event_token
void EventReceived(event_token const* cookie) const;

// Revoke with event_revoker
ISysStorageProviderEventSource::EventReceived_revoker EventReceived(auto_revoke_t, TypedEventHandler<ISysStorageProviderEventSource, SysStorageProviderEventReceivedEventArgs const&> const& handler) const;
event TypedEventHandler<ISysStorageProviderEventSource,SysStorageProviderEventReceivedEventArgs> EventReceived;
function onEventReceived(eventArgs) { /* Your code */ }
iSysStorageProviderEventSource.addEventListener("eventreceived", onEventReceived);
iSysStorageProviderEventSource.removeEventListener("eventreceived", onEventReceived);
- or -
iSysStorageProviderEventSource.oneventreceived = onEventReceived;
Event EventReceived As TypedEventHandler(Of ISysStorageProviderEventSource, SysStorageProviderEventReceivedEventArgs) 

事件類型

適用於