DevicePolicyManager.GetAccountTypesWithManagementDisabled Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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)>