setHostName() public method

public setHostName ( string hostName ) : void
hostName string
return void
コード例 #1
0
 //hostname변경부, 첫 호스트네임과 다를경우에만 변경
 private bool ChangeHostName()
 {
     SetIpAddress changeHostname = new SetIpAddress();
     if (String.CompareOrdinal(this.firstHostName, this.hostName) != 0)
     {
         changeHostname.setHostName(this.hostName);
         ShutDownexe();
         return true;
     }
     else
     {
         return false;
     }
 }