DevicePolicyManager.GetOrganizationName(ComponentName) 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 name of the organization under management.
public string? GetOrganizationName(Android.Content.ComponentName? admin);
member this.GetOrganizationName : Android.Content.ComponentName -> string
Parameters
- admin
- ComponentName
The DeviceAdminReceiver associated with this request. On platforms that support permission-based callers, this can be null when the caller is not a device admin.
Returns
The organization name or null if none is set.
Remarks
On Android 7 through 13 (API 24 through 33), the caller must be the profile owner of a managed profile. Some later platform configurations also allow the device owner or a holder of the android.permission.MANAGE_DEVICE_POLICY_ORGANIZATION_IDENTITY permission to call this method.
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.