Language

PreferentialNetworkServiceConfig.Builder.SetNetworkId(Int32) Method

Definition

Set the preferential network identifier.

[Android.Runtime.Register("setNetworkId", "(I)Landroid/app/admin/PreferentialNetworkServiceConfig$Builder;", "", ApiSince=33)]
public Android.App.Admin.PreferentialNetworkServiceConfig.Builder SetNetworkId(int preferenceId);
[<Android.Runtime.Register("setNetworkId", "(I)Landroid/app/admin/PreferentialNetworkServiceConfig$Builder;", "", ApiSince=33)>]
member this.SetNetworkId : int -> Android.App.Admin.PreferentialNetworkServiceConfig.Builder

Parameters

preferenceId
Int32

preference Id. Value is one of the following: PreferentialNetworkServiceConfig.PREFERENTIAL_NETWORK_ID_1; PreferentialNetworkServiceConfig.PREFERENTIAL_NETWORK_ID_2; PreferentialNetworkServiceConfig.PREFERENTIAL_NETWORK_ID_3; PreferentialNetworkServiceConfig.PREFERENTIAL_NETWORK_ID_4; PreferentialNetworkServiceConfig.PREFERENTIAL_NETWORK_ID_5

Returns

The builder to facilitate chaining. This value cannot be null.

Attributes

Remarks

Set the preferential network identifier. preference identifier is applicable only if preferential network service is enabled.

Android reference for android.app.admin.PreferentialNetworkServiceConfig.Builder.setNetworkId.

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