FileSystemException 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
FileSystemException(String) |
Constructs an instance of this class. |
FileSystemException(IntPtr, JniHandleOwnership) | |
FileSystemException(String, String, String) |
Constructs an instance of this class. |
FileSystemException(String)
Constructs an instance of this class.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=26)]
public FileSystemException (string? file);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=26)>]
new Java.Nio.FileNio.FileSystemException : string -> Java.Nio.FileNio.FileSystemException
Parameters
- file
- String
a string identifying the file or null
if not known.
- Attributes
Remarks
Constructs an instance of this class. This constructor should be used when an operation involving one file fails and there isn't any additional information to explain the reason.
Java documentation for java.nio.file.FileSystemException.FileSystemException(java.lang.String)
.
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
FileSystemException(IntPtr, JniHandleOwnership)
protected FileSystemException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Nio.FileNio.FileSystemException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Nio.FileNio.FileSystemException
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
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
FileSystemException(String, String, String)
Constructs an instance of this class.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=26)]
public FileSystemException (string? file, string? other, string? reason);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=26)>]
new Java.Nio.FileNio.FileSystemException : string * string * string -> Java.Nio.FileNio.FileSystemException
Parameters
- file
- String
a string identifying the file or null
if not known.
- other
- String
a string identifying the other file or null
if there
isn't another file or if not known
- reason
- String
a reason message with additional information or null
- Attributes
Remarks
Constructs an instance of this class. This constructor should be used when an operation involving two files fails, or there is additional information to explain the reason.
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.