GetCurrentNetworkName() public static method

public static GetCurrentNetworkName ( ) : string
return string
コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: HydAu/MSIotSamples
 private async void UpdateNetworkInfo()
 {
     this.DeviceName.Text         = DeviceInfoPresenter.GetDeviceName();
     this.IPAddress1.Text         = NetworkPresenter.GetCurrentIpv4Address();
     this.NetworkName1.Text       = NetworkPresenter.GetCurrentNetworkName();
     this.NetworkInfo.ItemsSource = await NetworkPresenter.GetNetworkInformation();
 }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: yapakipe/samples
 private void UpdateNetworkInfo()
 {
     this.DeviceName.Text   = DeviceInfoPresenter.GetDeviceName();
     this.IPAddress1.Text   = NetworkPresenter.GetCurrentIpv4Address();
     this.NetworkName1.Text = NetworkPresenter.GetCurrentNetworkName() ?? "Not connected";
 }