IPosixFileAttributeView.SetPermissions Method

Definition

Updates the file permissions.

[Android.Runtime.Register("setPermissions", "(Ljava/util/Set;)V", "GetSetPermissions_Ljava_util_Set_Handler:Java.Nio.FileNio.Attributes.IPosixFileAttributeViewInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public void SetPermissions (System.Collections.Generic.ICollection<Java.Nio.FileNio.Attributes.PosixFilePermission>? perms);
[<Android.Runtime.Register("setPermissions", "(Ljava/util/Set;)V", "GetSetPermissions_Ljava_util_Set_Handler:Java.Nio.FileNio.Attributes.IPosixFileAttributeViewInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member SetPermissions : System.Collections.Generic.ICollection<Java.Nio.FileNio.Attributes.PosixFilePermission> -> unit

Parameters

perms
ICollection<PosixFilePermission>

the new set of permissions

Attributes

Remarks

Updates the file permissions.

Java documentation for java.nio.file.attribute.PosixFileAttributeView.setPermissions(java.util.Set<java.nio.file.attribute.PosixFilePermission>).

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