IkeSessionParams.Builder.SetNetwork(Network) 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 the Network for the IkeSessionParams being built.
[Android.Runtime.Register("setNetwork", "(Landroid/net/Network;)Landroid/net/ipsec/ike/IkeSessionParams$Builder;", "", ApiSince=31)]
public Android.Net.IpSec.Ike.IkeSessionParams.Builder SetNetwork(Android.Net.Network? network);
[<Android.Runtime.Register("setNetwork", "(Landroid/net/Network;)Landroid/net/ipsec/ike/IkeSessionParams$Builder;", "", ApiSince=31)>]
member this.SetNetwork : Android.Net.Network -> Android.Net.IpSec.Ike.IkeSessionParams.Builder
Parameters
- network
- Network
the Network that IKE Session will use, or null to clear the previously set Network
Returns
Builder this, to facilitate chaining. This value cannot be null.
- Attributes
Remarks
Sets the Network for the IkeSessionParams being built.
If no network is provided, the default network is used. It is normally selected when constructing an IKE session, but parameters created with the deprecated Android context constructor resolve it when the parameters are built.
Android reference for android.net.ipsec.ike.IkeSessionParams.Builder.setNetwork.
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.