Language

DevicePolicyManager.GetAffiliationIds(ComponentName) Method

Definition

Returns the set of affiliation ids previously set via #setAffiliationIds, or an empty set if none have been set.

[Android.Runtime.Register("getAffiliationIds", "(Landroid/content/ComponentName;)Ljava/util/Set;", "GetGetAffiliationIds_Landroid_content_ComponentName_Handler", ApiSince=26)]
public virtual System.Collections.Generic.ICollection<string> GetAffiliationIds(Android.Content.ComponentName admin);
[<Android.Runtime.Register("getAffiliationIds", "(Landroid/content/ComponentName;)Ljava/util/Set;", "GetGetAffiliationIds_Landroid_content_ComponentName_Handler", ApiSince=26)>]
abstract member GetAffiliationIds : Android.Content.ComponentName -> System.Collections.Generic.ICollection<string>
override this.GetAffiliationIds : Android.Content.ComponentName -> System.Collections.Generic.ICollection<string>

Parameters

admin
ComponentName

The component name of an active administrator with the same UID as the caller.

Returns

The affiliation IDs that were set with SetAffiliationIds(ComponentName, ICollection<String>). The result is never null; it is empty if no IDs are set.

Attributes

Remarks

Returns the set of affiliation ids previously set via #setAffiliationIds, or an empty set if none have been set.

Java documentation for android.app.admin.DevicePolicyManager.getAffiliationIds(android.content.ComponentName).

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