共用方式為


DevicePolicyManager.SubscriptionIds Property

Definition

Returns the subscription ids of all subscriptions which were downloaded by the calling admin.

public virtual System.Collections.Generic.ICollection<Java.Lang.Integer> SubscriptionIds { [Android.Runtime.Register("getSubscriptionIds", "()Ljava/util/Set;", "GetGetSubscriptionIdsHandler", ApiSince=35)] [Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_MANAGED_SUBSCRIPTIONS")] get; }
[<get: Android.Runtime.Register("getSubscriptionIds", "()Ljava/util/Set;", "GetGetSubscriptionIdsHandler", ApiSince=35)>]
[<get: Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_MANAGED_SUBSCRIPTIONS")>]
member this.SubscriptionIds : System.Collections.Generic.ICollection<Java.Lang.Integer>

Property Value

ids of all managed subscriptions currently downloaded by an admin on the device.

Attributes

Remarks

Returns the subscription ids of all subscriptions which were downloaded by the calling admin.

This returns only the subscriptions which were downloaded by the calling admin via android.telephony.euicc.EuiccManager#downloadSubscription. If a subscription is returned by this method then in it subject to management controls and cannot be removed by users.

Callable by device owners and profile owners.

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

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