AtomicFile Constructors
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
AtomicFile(File) |
Create a new AtomicFile for a file located at the given File path. |
AtomicFile(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
AtomicFile(File)
Create a new AtomicFile for a file located at the given File path.
[Android.Runtime.Register(".ctor", "(Ljava/io/File;)V", "")]
public AtomicFile (Java.IO.File? baseName);
[<Android.Runtime.Register(".ctor", "(Ljava/io/File;)V", "")>]
new Android.Util.AtomicFile : Java.IO.File -> Android.Util.AtomicFile
Parameters
- baseName
- File
- Attributes
Remarks
Create a new AtomicFile for a file located at the given File path. The new file created when writing will be the same file path with ".new" appended.
Java documentation for android.util.AtomicFile.AtomicFile(java.io.File)
.
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
AtomicFile(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected AtomicFile (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Util.AtomicFile : nativeint * Android.Runtime.JniHandleOwnership -> Android.Util.AtomicFile
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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.