共用方式為


IWatchService.Take Method

Definition

Retrieves and removes next watch key, waiting if none are yet present.

[Android.Runtime.Register("take", "()Ljava/nio/file/WatchKey;", "GetTakeHandler:Java.Nio.FileNio.IWatchServiceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.IWatchKey? Take ();
[<Android.Runtime.Register("take", "()Ljava/nio/file/WatchKey;", "GetTakeHandler:Java.Nio.FileNio.IWatchServiceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Take : unit -> Java.Nio.FileNio.IWatchKey

Returns

the next watch key

Attributes

Remarks

Retrieves and removes next watch key, waiting if none are yet present.

Java documentation for java.nio.file.WatchService.take().

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