FileStore.GetFileStoreAttributeView(Class) Method

Definition

Returns a FileStoreAttributeView of the given type.

[Android.Runtime.Register("getFileStoreAttributeView", "(Ljava/lang/Class;)Ljava/nio/file/attribute/FileStoreAttributeView;", "GetGetFileStoreAttributeView_Ljava_lang_Class_Handler", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "V extends java.nio.file.attribute.FileStoreAttributeView" })]
public abstract Java.Lang.Object? GetFileStoreAttributeView (Java.Lang.Class? type);
[<Android.Runtime.Register("getFileStoreAttributeView", "(Ljava/lang/Class;)Ljava/nio/file/attribute/FileStoreAttributeView;", "GetGetFileStoreAttributeView_Ljava_lang_Class_Handler", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "V extends java.nio.file.attribute.FileStoreAttributeView" })>]
abstract member GetFileStoreAttributeView : Java.Lang.Class -> Java.Lang.Object

Parameters

type
Class

the Class object corresponding to the attribute view

Returns

a file store attribute view of the specified type or null if the attribute view is not available

Attributes

Remarks

Returns a FileStoreAttributeView of the given type.

This method is intended to be used where the file store attribute view defines type-safe methods to read or update the file store attributes. The type parameter is the type of the attribute view required and the method returns an instance of that type if supported.

Java documentation for java.nio.file.FileStore.getFileStoreAttributeView(java.lang.Class<V>).

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