TelephonyManager.SetForbiddenPlmns(IList<String>) 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.
Replace the contents of the forbidden PLMN SIM file with the provided values.
[Android.Runtime.Register("setForbiddenPlmns", "(Ljava/util/List;)I", "GetSetForbiddenPlmns_Ljava_util_List_Handler", ApiSince=30)]
[Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")]
public virtual int SetForbiddenPlmns (System.Collections.Generic.IList<string> fplmns);
[<Android.Runtime.Register("setForbiddenPlmns", "(Ljava/util/List;)I", "GetSetForbiddenPlmns_Ljava_util_List_Handler", ApiSince=30)>]
[<Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")>]
abstract member SetForbiddenPlmns : System.Collections.Generic.IList<string> -> int
override this.SetForbiddenPlmns : System.Collections.Generic.IList<string> -> int
Parameters
Returns
number of PLMNs that were successfully written to the SIM FPLMN list. This may be less than the number of PLMNs passed in where the SIM file does not have enough room for all of the values passed in. Return -1 in the event of an unexpected failure
- Attributes
Remarks
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.