Language

StandardOpenOption.CreateNew Property

Definition

Creates a new file and fails when a file already exists at the path.

[Android.Runtime.Register("CREATE_NEW", ApiSince=26)]
public static Java.Nio.FileNio.StandardOpenOption? CreateNew { get; }
[<Android.Runtime.Register("CREATE_NEW", ApiSince=26)>]
static member CreateNew : Java.Nio.FileNio.StandardOpenOption

Property Value

An open option that creates a file only when it is absent.

Attributes

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.

Applies to