語言

DevicePolicyManager.SetProfileName(ComponentName, String) 方法

定義

設定檔案名稱。

[Android.Runtime.Register("setProfileName", "(Landroid/content/ComponentName;Ljava/lang/String;)V", "GetSetProfileName_Landroid_content_ComponentName_Ljava_lang_String_Handler")]
public virtual void SetProfileName(Android.Content.ComponentName admin, string? profileName);
[<Android.Runtime.Register("setProfileName", "(Landroid/content/ComponentName;Ljava/lang/String;)V", "GetSetProfileName_Landroid_content_ComponentName_Ljava_lang_String_Handler")>]
abstract member SetProfileName : Android.Content.ComponentName * string -> unit
override this.SetProfileName : Android.Content.ComponentName * string -> unit

參數

admin
ComponentName

這個請求就是與此 DeviceAdminReceiver 相關。

profileName
String

設定檔的名稱。 若名稱超過200字元,則會被截斷。

屬性

備註

設定檔案名稱。 在裝置擁有者的情況下,它會設定呼叫來源的使用者名稱。 只有設定檔擁有者或裝置擁有者才能判斷。 如果設定檔或裝置擁有者從未呼叫這個名稱,該名稱將被設為預設值。

Java 文件 android.app.admin.DevicePolicyManager.setProfileName(android.content.ComponentName, java.lang.String)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

另請參閱