SubscriptionManager.CanManageSubscription(SubscriptionInfo) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
檢查具有指定內容的應用程式是否有權根據其元數據來管理指定的訂用帳戶。
[Android.Runtime.Register("canManageSubscription", "(Landroid/telephony/SubscriptionInfo;)Z", "GetCanManageSubscription_Landroid_telephony_SubscriptionInfo_Handler", ApiSince=28)]
public virtual bool CanManageSubscription (Android.Telephony.SubscriptionInfo? info);
[<Android.Runtime.Register("canManageSubscription", "(Landroid/telephony/SubscriptionInfo;)Z", "GetCanManageSubscription_Landroid_telephony_SubscriptionInfo_Handler", ApiSince=28)>]
abstract member CanManageSubscription : Android.Telephony.SubscriptionInfo -> bool
override this.CanManageSubscription : Android.Telephony.SubscriptionInfo -> bool
參數
- info
- SubscriptionInfo
要檢查的訂用帳戶。
傳回
應用程式是否獲授權根據其元數據管理此訂用帳戶。
- 屬性
備註
檢查具有指定內容的應用程式是否有權根據其元數據來管理指定的訂用帳戶。
僅支援內嵌訂閱(如果 SubscriptionInfo#isEmbedded
傳回 true)。 若要檢查非內嵌訂閱的許可權,請參閱 android.telephony.TelephonyManager#hasCarrierPrivileges
。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。