次の方法で共有


IPosixFileAttributeView.SetGroup(IGroupPrincipal) Method

Definition

Updates the file group-owner.

[Android.Runtime.Register("setGroup", "(Ljava/nio/file/attribute/GroupPrincipal;)V", "GetSetGroup_Ljava_nio_file_attribute_GroupPrincipal_Handler:Java.Nio.FileNio.Attributes.IPosixFileAttributeViewInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public void SetGroup (Java.Nio.FileNio.Attributes.IGroupPrincipal? group);
[<Android.Runtime.Register("setGroup", "(Ljava/nio/file/attribute/GroupPrincipal;)V", "GetSetGroup_Ljava_nio_file_attribute_GroupPrincipal_Handler:Java.Nio.FileNio.Attributes.IPosixFileAttributeViewInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member SetGroup : Java.Nio.FileNio.Attributes.IGroupPrincipal -> unit

Parameters

group
IGroupPrincipal

the new file group-owner

Attributes

Remarks

Updates the file group-owner.

Java documentation for java.nio.file.attribute.PosixFileAttributeView.setGroup(java.nio.file.attribute.GroupPrincipal).

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