Język

WifiNetworkSpecifier.Builder.SetWpa2Passphrase(String) Method

Definition

Set the ASCII WPA2 passphrase for this network.

[Android.Runtime.Register("setWpa2Passphrase", "(Ljava/lang/String;)Landroid/net/wifi/WifiNetworkSpecifier$Builder;", "", ApiSince=29)]
public Android.Net.Wifi.WifiNetworkSpecifier.Builder SetWpa2Passphrase(string passphrase);
[<Android.Runtime.Register("setWpa2Passphrase", "(Ljava/lang/String;)Landroid/net/wifi/WifiNetworkSpecifier$Builder;", "", ApiSince=29)>]
member this.SetWpa2Passphrase : string -> Android.Net.Wifi.WifiNetworkSpecifier.Builder

Parameters

passphrase
String

passphrase of the network. This value cannot be null.

Returns

Instance of Builder to enable chaining of the builder method. This value cannot be null.

Attributes

Remarks

Set the ASCII WPA2 passphrase for this network. Needed for authenticating to WPA2-PSK networks.

Android reference for android.net.wifi.WifiNetworkSpecifier.Builder.setWpa2Passphrase.

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