C# 클래스 SlavaGu.ConsoleAppLauncher.Samples.SysInfo

파일 보기 프로젝트 열기: slavagu/ConsoleAppLauncher 1 사용 예제들

공개 메소드들

메소드 설명
GetFirewallRule ( string ruleName ) : string

Get Windows firewall rule

GetIpAddress ( ) : string

Run ipconfig.exe and return matching line.

GetWindowsVersion ( ) : string

Run simplest shell command and return its output.

PingUrl ( string url, Action replyHandler ) : void

Run ping.exe asynchronously and return roundtrip times back to the caller in a callback

메소드 상세

GetFirewallRule() 공개 정적인 메소드

Get Windows firewall rule
public static GetFirewallRule ( string ruleName ) : string
ruleName string
리턴 string

GetIpAddress() 공개 정적인 메소드

Run ipconfig.exe and return matching line.
public static GetIpAddress ( ) : string
리턴 string

GetWindowsVersion() 공개 정적인 메소드

Run simplest shell command and return its output.
public static GetWindowsVersion ( ) : string
리턴 string

PingUrl() 공개 정적인 메소드

Run ping.exe asynchronously and return roundtrip times back to the caller in a callback
public static PingUrl ( string url, Action replyHandler ) : void
url string
replyHandler Action
리턴 void