VcnConfig.Builder.SetRestrictedUnderlyingNetworkTransports 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.
Sets transports that will be restricted by the VCN.
[Android.Runtime.Register("setRestrictedUnderlyingNetworkTransports", "(Ljava/util/Set;)Landroid/net/vcn/VcnConfig$Builder;", "", ApiSince=34)]
public Android.Net.Vcn.VcnConfig.Builder SetRestrictedUnderlyingNetworkTransports(System.Collections.Generic.ICollection<Java.Lang.Integer> transports);
[<Android.Runtime.Register("setRestrictedUnderlyingNetworkTransports", "(Ljava/util/Set;)Landroid/net/vcn/VcnConfig$Builder;", "", ApiSince=34)>]
member this.SetRestrictedUnderlyingNetworkTransports : System.Collections.Generic.ICollection<Java.Lang.Integer> -> Android.Net.Vcn.VcnConfig.Builder
Parameters
- transports
- ICollection<Integer>
transports that will be restricted by VCN. Networks that include any of the transports will be marked as restricted. NetworkCapabilities.TRANSPORT_WIFI is marked restricted by default. This value cannot be null.
Returns
this Builder instance, for chaining. This value cannot be null.
- Attributes
Remarks
Sets transports that will be restricted by the VCN.
In general, apps will not be able to bind to, or use a restricted network. In other words, unless the network type is marked restricted, any app can opt to use underlying networks, instead of through the VCN.
Android reference for android.net.vcn.VcnConfig.Builder.setRestrictedUnderlyingNetworkTransports.
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.