Paths.Get 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
| Name | Description |
|---|---|
| Get(URI) |
Converts the given URI to a |
| Get(String, String[]) |
Converts a path string, or a sequence of strings that when joined form
a path string, to a |
Get(URI)
Converts the given URI to a Path object.
[Android.Runtime.Register("get", "(Ljava/net/URI;)Ljava/nio/file/Path;", "", ApiSince=26)]
public static Java.Nio.FileNio.IPath? Get(Java.Net.URI? uri);
[<Android.Runtime.Register("get", "(Ljava/net/URI;)Ljava/nio/file/Path;", "", ApiSince=26)>]
static member Get : Java.Net.URI -> Java.Nio.FileNio.IPath
Parameters
- uri
- URI
the URI to convert
Returns
the resulting Path
- Attributes
Exceptions
if preconditions on the uri parameter do not hold. The format of the URI is provider specific.
The file system, identified by the URI, does not exist and cannot be created automatically, or the provider identified by the URI's scheme component is not installed
if a security manager is installed and it denies an unspecified permission to access the file system
Remarks
Converts the given URI to a Path object.
Java documentation for java.nio.file.Paths.get(java.net.URI).
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
Get(String, String[])
Converts a path string, or a sequence of strings that when joined form
a path string, to a Path.
[Android.Runtime.Register("get", "(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;", "", ApiSince=26)]
public static Java.Nio.FileNio.IPath? Get(string? first, params string[]? more);
[<Android.Runtime.Register("get", "(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;", "", ApiSince=26)>]
static member Get : string * string[] -> Java.Nio.FileNio.IPath
Parameters
- first
- String
the path string or initial part of the path string
- more
- String[]
additional strings to be joined to form the path string
Returns
the resulting Path
- Attributes
Remarks
Java documentation for java.nio.file.Paths.get(java.lang.String, 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.