ISiteFileWatcherService.RegisterForSiteNotifications 方法
适用于版本2
注册针对站点的更改通知。
命名空间: Microsoft.WebMatrix.Extensibility
程序集: Microsoft.WebMatrix.Extensibility(在 Microsoft.WebMatrix.Extensibility.dll 中)
语法
声明
Function RegisterForSiteNotifications ( _
changeTypes As WatcherChangeTypes, _
handler As FileSystemEventHandler, _
renameHandler As RenamedEventHandler _
) As Boolean
用法
Dim instance As ISiteFileWatcherService
Dim changeTypes As WatcherChangeTypes
Dim handler As FileSystemEventHandler
Dim renameHandler As RenamedEventHandler
Dim returnValue As Boolean
returnValue = instance.RegisterForSiteNotifications(changeTypes, _
handler, renameHandler)
bool RegisterForSiteNotifications(
WatcherChangeTypes changeTypes,
FileSystemEventHandler handler,
RenamedEventHandler renameHandler
)
bool RegisterForSiteNotifications(
WatcherChangeTypes changeTypes,
FileSystemEventHandler^ handler,
RenamedEventHandler^ renameHandler
)
abstract RegisterForSiteNotifications :
changeTypes:WatcherChangeTypes *
handler:FileSystemEventHandler *
renameHandler:RenamedEventHandler -> bool
function RegisterForSiteNotifications(
changeTypes : WatcherChangeTypes,
handler : FileSystemEventHandler,
renameHandler : RenamedEventHandler
) : boolean
参数
changeTypes
类型:System.IO.WatcherChangeTypes要接收的通知类型。
handler
类型:System.IO.FileSystemEventHandler要调用的通知接收处理程序。
renameHandler
类型:System.IO.RenamedEventHandler重命名处理程序。
返回值
类型:System.Boolean
如果可以提供通知,则为 true;否则为 false。