DevicePolicyManager.GetAccountTypesWithManagementDisabled Method

Definition

Gets the array of accounts for which account management is disabled by the profile owner or device owner.

[Android.Runtime.Register("getAccountTypesWithManagementDisabled", "()[Ljava/lang/String;", "GetGetAccountTypesWithManagementDisabledHandler")]
public virtual string[]? GetAccountTypesWithManagementDisabled ();
[<Android.Runtime.Register("getAccountTypesWithManagementDisabled", "()[Ljava/lang/String;", "GetGetAccountTypesWithManagementDisabledHandler")>]
abstract member GetAccountTypesWithManagementDisabled : unit -> string[]
override this.GetAccountTypesWithManagementDisabled : unit -> string[]

Returns

String[]

a list of account types for which account management has been disabled.

Attributes

Remarks

Gets the array of accounts for which account management is disabled by the profile owner or device owner.

Account management can be disabled/enabled by calling #setAccountManagementDisabled.

This method may be called on the DevicePolicyManager instance returned from #getParentProfileInstance(ComponentName). Note that only a profile owner on an organization-owned device can affect account types on the parent profile instance.

Java documentation for android.app.admin.DevicePolicyManager.getAccountTypesWithManagementDisabled().

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

See also

  • <xref:Android.App.Admin.DevicePolicyManager.SetAccountManagementDisabled(Android.Content.ComponentName%2c+System.String%2c+System.String)>