ISiteFileWatcherService.RegisterForSiteNotifications Method
Applies to v2.
Registers for change notifications for a site.
Namespace: Microsoft.WebMatrix.Extensibility
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Function RegisterForSiteNotifications ( _
changeTypes As WatcherChangeTypes, _
handler As FileSystemEventHandler, _
renameHandler As RenamedEventHandler _
) As Boolean
'Usage
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
Parameters
changeTypes
Type: System.IO.WatcherChangeTypesThe types of notifications you want to receive.
handler
Type: System.IO.FileSystemEventHandlerThe handler to call with notifications.
renameHandler
Type: System.IO.RenamedEventHandlerThe rename handler.
Return Value
Type: System.Boolean
true if the notification can be provided; otherwise false.