Share via


ISecureDirectoryStream.GetFileAttributeView Method

Definition

Overloads

GetFileAttributeView(Class)

Returns a new file attribute view to access the file attributes of this directory.

GetFileAttributeView(Object, Class, LinkOption[])

Returns a new file attribute view to access the file attributes of this directory.

GetFileAttributeView(Class)

Returns a new file attribute view to access the file attributes of this directory.

[Android.Runtime.Register("getFileAttributeView", "(Ljava/lang/Class;)Ljava/nio/file/attribute/FileAttributeView;", "GetGetFileAttributeView_Ljava_lang_Class_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "V extends java.nio.file.attribute.FileAttributeView" })]
public Java.Lang.Object? GetFileAttributeView (Java.Lang.Class? type);
[<Android.Runtime.Register("getFileAttributeView", "(Ljava/lang/Class;)Ljava/nio/file/attribute/FileAttributeView;", "GetGetFileAttributeView_Ljava_lang_Class_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "V extends java.nio.file.attribute.FileAttributeView" })>]
abstract member GetFileAttributeView : Java.Lang.Class -> Java.Lang.Object

Parameters

type
Class

the Class object corresponding to the file attribute view

Returns

a new file attribute view of the specified type bound to this directory stream, or null if the attribute view type is not available

Attributes

Remarks

Returns a new file attribute view to access the file attributes of this directory.

The resulting file attribute view can be used to read or update the attributes of this (open) directory. The type parameter specifies the type of the attribute view and the method returns an instance of that type if supported. Invoking this method to obtain a BasicFileAttributeView always returns an instance of that class that is bound to this open directory.

The state of resulting file attribute view is intimately connected to this directory stream. Once the directory stream is #close closed, then all methods to read or update attributes will throw ClosedDirectoryStreamException ClosedDirectoryStreamException.

Java documentation for java.nio.file.SecureDirectoryStream.getFileAttributeView(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

GetFileAttributeView(Object, Class, LinkOption[])

Returns a new file attribute view to access the file attributes of this directory.

[Android.Runtime.Register("getFileAttributeView", "(Ljava/lang/Object;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileAttributeView;", "GetGetFileAttributeView_Ljava_lang_Object_Ljava_lang_Class_arrayLjava_nio_file_LinkOption_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "V extends java.nio.file.attribute.FileAttributeView" })]
public Java.Lang.Object? GetFileAttributeView (Java.Lang.Object? path, Java.Lang.Class? type, params Java.Nio.FileNio.LinkOption[]? options);
[<Android.Runtime.Register("getFileAttributeView", "(Ljava/lang/Object;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileAttributeView;", "GetGetFileAttributeView_Ljava_lang_Object_Ljava_lang_Class_arrayLjava_nio_file_LinkOption_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "V extends java.nio.file.attribute.FileAttributeView" })>]
abstract member GetFileAttributeView : Java.Lang.Object * Java.Lang.Class * Java.Nio.FileNio.LinkOption[] -> Java.Lang.Object

Parameters

path
Object
type
Class

the Class object corresponding to the file attribute view

options
LinkOption[]

Returns

a new file attribute view of the specified type bound to this directory stream, or null if the attribute view type is not available

Attributes

Remarks

Java documentation for java.nio.file.SecureDirectoryStream.getFileAttributeView(java.lang.Class).

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