Language

ISecureDirectoryStream.GetFileAttributeView メソッド

定義

オーバーロード

Name 説明
GetFileAttributeView(Class)

このディレクトリのファイル属性にアクセスするための新しいファイル属性ビューを返します。

GetFileAttributeView(Object, Class, LinkOption[])

このディレクトリのファイル属性にアクセスするための新しいファイル属性ビューを返します。

GetFileAttributeView(Class)

このディレクトリのファイル属性にアクセスするための新しいファイル属性ビューを返します。

[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

パラメーター

type
Class

ファイル属性ビューに対応する Class オブジェクト

返品

このディレクトリ ストリームにバインドされている指定した型の新しいファイル属性ビュー。属性ビューの種類が使用できない場合はnull

属性

注釈

このディレクトリのファイル属性にアクセスするための新しいファイル属性ビューを返します。

結果のファイル属性ビューを使用して、この (開いている) ディレクトリの属性を読み取りまたは更新できます。 type パラメーターは属性ビューの型を指定し、サポートされている場合はメソッドはその型のインスタンスを返します。 このメソッドを呼び出して BasicFileAttributeView を取得すると、常に、この開いているディレクトリにバインドされているそのクラスのインスタンスが返されます。

結果のファイル属性ビューの状態は、このディレクトリ ストリームに密接に接続されます。 ディレクトリ ストリームが #close closedされると、属性の読み取りまたは更新を行うすべてのメソッドが ClosedDirectoryStreamException ClosedDirectoryStreamExceptionをスローします。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

GetFileAttributeView(Object, Class, LinkOption[])

このディレクトリのファイル属性にアクセスするための新しいファイル属性ビューを返します。

[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

パラメーター

path
Object

ファイルのパス

type
Class

ファイル属性ビューに対応する Class オブジェクト

options
LinkOption[]

シンボリック リンクの処理方法を示すオプション

返品

このディレクトリ ストリームにバインドされている指定した型の新しいファイル属性ビュー。属性ビューの種類が使用できない場合はnull

属性

注釈

Javaドキュメント。

Javaリファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象