IPath.Register Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Register(IWatchService, IWatchEventKind[], IWatchEventModifier[]) |
Registers the file located by this path with a watch service. |
Register(IWatchService, IWatchEventKind[]) |
Registers the file located by this path with a watch service. |
Register(IWatchService, IWatchEventKind[], IWatchEventModifier[])
Registers the file located by this path with a watch service.
[Android.Runtime.Register("register", "(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;", "GetRegister_Ljava_nio_file_WatchService_arrayLjava_nio_file_WatchEvent_Kind_arrayLjava_nio_file_WatchEvent_Modifier_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.IWatchKey? Register (Java.Nio.FileNio.IWatchService? watcher, Java.Nio.FileNio.IWatchEventKind[]? events, params Java.Nio.FileNio.IWatchEventModifier[]? modifiers);
[<Android.Runtime.Register("register", "(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;", "GetRegister_Ljava_nio_file_WatchService_arrayLjava_nio_file_WatchEvent_Kind_arrayLjava_nio_file_WatchEvent_Modifier_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Register : Java.Nio.FileNio.IWatchService * Java.Nio.FileNio.IWatchEventKind[] * Java.Nio.FileNio.IWatchEventModifier[] -> Java.Nio.FileNio.IWatchKey
Parameters
- watcher
- IWatchService
The watch service to which this object is to be registered
- events
- IWatchEventKind[]
The events for which this object should be registered
- modifiers
- IWatchEventModifier[]
Returns
A key representing the registration of this object with the given watch service
Implements
- Attributes
Remarks
Java documentation for java.nio.file.Path.register(java.nio.file.WatchService, java.nio.file.Kind)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Register(IWatchService, IWatchEventKind[])
Registers the file located by this path with a watch service.
[Android.Runtime.Register("register", "(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;)Ljava/nio/file/WatchKey;", "GetRegister_Ljava_nio_file_WatchService_arrayLjava_nio_file_WatchEvent_Kind_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.IWatchKey? Register (Java.Nio.FileNio.IWatchService? watcher, params Java.Nio.FileNio.IWatchEventKind[]? events);
[<Android.Runtime.Register("register", "(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;)Ljava/nio/file/WatchKey;", "GetRegister_Ljava_nio_file_WatchService_arrayLjava_nio_file_WatchEvent_Kind_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Register : Java.Nio.FileNio.IWatchService * Java.Nio.FileNio.IWatchEventKind[] -> Java.Nio.FileNio.IWatchKey
Parameters
- watcher
- IWatchService
The watch service to which this object is to be registered
- events
- IWatchEventKind[]
The events for which this object should be registered
Returns
A key representing the registration of this object with the given watch service
Implements
- Attributes
Remarks
Java documentation for java.nio.file.Path.register(java.nio.file.WatchService, java.nio.file.Kind)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.