Udostępnij za pośrednictwem


IPosixFileAttributes.Permissions Method

Definition

Returns the permissions of the file.

[Android.Runtime.Register("permissions", "()Ljava/util/Set;", "GetPermissionsHandler:Java.Nio.FileNio.Attributes.IPosixFileAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public System.Collections.Generic.ICollection<Java.Nio.FileNio.Attributes.PosixFilePermission>? Permissions ();
[<Android.Runtime.Register("permissions", "()Ljava/util/Set;", "GetPermissionsHandler:Java.Nio.FileNio.Attributes.IPosixFileAttributesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Permissions : unit -> System.Collections.Generic.ICollection<Java.Nio.FileNio.Attributes.PosixFilePermission>

Returns

the file permissions

Attributes

Remarks

Returns the permissions of the file. The file permissions are returned as a set of PosixFilePermission elements. The returned set is a copy of the file permissions and is modifiable. This allows the result to be modified and passed to the PosixFileAttributeView#setPermissions setPermissions method to update the file's permissions.

Java documentation for java.nio.file.attribute.PosixFileAttributes.permissions().

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