C# Class IoTCoreDefaultApp.NetworkPresenter

ファイルを表示 Open project: MicrosoftEdge/WebOnPi Class Usage Examples

Public Methods

Method Description
ConnectToNetwork ( WiFiAvailableNetwork network, bool autoConnect ) : Task
ConnectToNetworkWithPassword ( WiFiAvailableNetwork network, bool autoConnect, PasswordCredential password ) : Task
DisconnectNetwork ( WiFiAvailableNetwork network ) : void
GetAvailableNetworks ( ) : Task>
GetCurrentIpv4Address ( ) : string
GetCurrentNetworkName ( ) : string
GetCurrentWifiNetwork ( ) : WiFiAvailableNetwork
GetDirectConnectionName ( ) : string
GetNetworkInformation ( ) : Task>
IsNetworkOpen ( WiFiAvailableNetwork network ) : bool
NetworkPresenter ( ) : System
WifiIsAvailable ( ) : Task

Private Methods

Method Description
AdaptersAdded ( DeviceWatcher sender, DeviceInformation args ) : void
AdaptersEnumCompleted ( DeviceWatcher sender, object args ) : void
AdaptersRemoved ( DeviceWatcher sender, DeviceInformationUpdate args ) : void
HasSsid ( WiFiAdapter>.Dictionary resultCollection, string ssid ) : bool
TestAccess ( ) : Task
UpdateAdapters ( ) : System.Threading.Tasks.Task
UpdateInfo ( ) : Task

Method Details

ConnectToNetwork() public method

public ConnectToNetwork ( WiFiAvailableNetwork network, bool autoConnect ) : Task
network WiFiAvailableNetwork
autoConnect bool
return Task

ConnectToNetworkWithPassword() public method

public ConnectToNetworkWithPassword ( WiFiAvailableNetwork network, bool autoConnect, PasswordCredential password ) : Task
network WiFiAvailableNetwork
autoConnect bool
password Windows.Security.Credentials.PasswordCredential
return Task

DisconnectNetwork() public method

public DisconnectNetwork ( WiFiAvailableNetwork network ) : void
network WiFiAvailableNetwork
return void

GetAvailableNetworks() public method

public GetAvailableNetworks ( ) : Task>
return Task>

GetCurrentIpv4Address() public static method

public static GetCurrentIpv4Address ( ) : string
return string

GetCurrentNetworkName() public static method

public static GetCurrentNetworkName ( ) : string
return string

GetCurrentWifiNetwork() public method

public GetCurrentWifiNetwork ( ) : WiFiAvailableNetwork
return WiFiAvailableNetwork

GetDirectConnectionName() public static method

public static GetDirectConnectionName ( ) : string
return string

GetNetworkInformation() public static method

public static GetNetworkInformation ( ) : Task>
return Task>

IsNetworkOpen() public static method

public static IsNetworkOpen ( WiFiAvailableNetwork network ) : bool
network WiFiAvailableNetwork
return bool

NetworkPresenter() public method

public NetworkPresenter ( ) : System
return System

WifiIsAvailable() public method

public WifiIsAvailable ( ) : Task
return Task