FileStore.SupportsFileAttributeView 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
SupportsFileAttributeView(Class) |
Tells whether or not this file store supports the file attributes identified by the given file attribute view. |
SupportsFileAttributeView(String) |
Tells whether or not this file store supports the file attributes identified by the given file attribute view. |
SupportsFileAttributeView(Class)
Tells whether or not this file store supports the file attributes identified by the given file attribute view.
[Android.Runtime.Register("supportsFileAttributeView", "(Ljava/lang/Class;)Z", "GetSupportsFileAttributeView_Ljava_lang_Class_Handler", ApiSince=26)]
public abstract bool SupportsFileAttributeView (Java.Lang.Class? type);
[<Android.Runtime.Register("supportsFileAttributeView", "(Ljava/lang/Class;)Z", "GetSupportsFileAttributeView_Ljava_lang_Class_Handler", ApiSince=26)>]
abstract member SupportsFileAttributeView : Java.Lang.Class -> bool
Parameters
- type
- Class
the file attribute view type
Returns
true
if, and only if, the file attribute view is
supported
- Attributes
Remarks
Tells whether or not this file store supports the file attributes identified by the given file attribute view.
Invoking this method to test if the file store supports BasicFileAttributeView
will always return true
. In the case of the default provider, this method cannot guarantee to give the correct result when the file store is not a local storage device. The reasons for this are implementation specific and therefore unspecified.
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
SupportsFileAttributeView(String)
Tells whether or not this file store supports the file attributes identified by the given file attribute view.
[Android.Runtime.Register("supportsFileAttributeView", "(Ljava/lang/String;)Z", "GetSupportsFileAttributeView_Ljava_lang_String_Handler", ApiSince=26)]
public abstract bool SupportsFileAttributeView (string? name);
[<Android.Runtime.Register("supportsFileAttributeView", "(Ljava/lang/String;)Z", "GetSupportsFileAttributeView_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member SupportsFileAttributeView : string -> bool
Parameters
- name
- String
the FileAttributeView#name name
of file attribute view
Returns
true
if, and only if, the file attribute view is
supported
- Attributes
Remarks
Tells whether or not this file store supports the file attributes identified by the given file attribute view.
Invoking this method to test if the file store supports BasicFileAttributeView
, identified by the name "basic
" will always return true
. In the case of the default provider, this method cannot guarantee to give the correct result when the file store is not a local storage device. The reasons for this are implementation specific and therefore unspecified.
Java documentation for java.nio.file.FileStore.supportsFileAttributeView(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.