WifiInfo.NetworkId Property
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.
Each configured network has a unique small integer ID, used to identify the network.
public virtual int NetworkId { [Android.Runtime.Register("getNetworkId", "()I", "GetGetNetworkIdHandler")] get; }
[<get: Android.Runtime.Register("getNetworkId", "()I", "GetGetNetworkIdHandler")>]
member this.NetworkId : int
Property Value
the network ID.
- Attributes
Remarks
Each configured network has a unique small integer ID, used to identify the network. This method returns the ID for the currently connected network.
The networkId may be -1
if there is no currently connected network or if the caller has insufficient permissions to access the network ID.
Java documentation for android.net.wifi.WifiInfo.getNetworkId()
.
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.