C# Class System.Net.NetworkInformation.Ping

Inheritance: System.ComponentModel.Component, IDisposable
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode Description
Ping ( )
Send ( System address ) : PingReply
Send ( System address, int timeout ) : PingReply
Send ( System address, int timeout, byte buffer ) : PingReply
Send ( System address, int timeout, byte buffer, System options ) : PingReply
Send ( string hostNameOrAddress ) : PingReply
Send ( string hostNameOrAddress, int timeout ) : PingReply
Send ( string hostNameOrAddress, int timeout, byte buffer ) : PingReply
Send ( string hostNameOrAddress, int timeout, byte buffer, System options ) : PingReply
SendAsync ( System address, int timeout, byte buffer, System options, object userToken ) : void
SendAsync ( System address, int timeout, byte buffer, object userToken ) : void
SendAsync ( System address, int timeout, object userToken ) : void
SendAsync ( System address, object userToken ) : void
SendAsync ( string hostNameOrAddress, int timeout, byte buffer, System options, object userToken ) : void
SendAsync ( string hostNameOrAddress, int timeout, byte buffer, object userToken ) : void
SendAsync ( string hostNameOrAddress, int timeout, object userToken ) : void
SendAsync ( string hostNameOrAddress, object userToken ) : void
SendAsyncCancel ( ) : void
SendPingAsync ( System address ) : System.Threading.Tasks.Task
SendPingAsync ( System address, int timeout ) : System.Threading.Tasks.Task
SendPingAsync ( System address, int timeout, byte buffer ) : System.Threading.Tasks.Task
SendPingAsync ( System address, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task
SendPingAsync ( string hostNameOrAddress ) : System.Threading.Tasks.Task
SendPingAsync ( string hostNameOrAddress, int timeout ) : System.Threading.Tasks.Task
SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer ) : System.Threading.Tasks.Task
SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
OnPingCompleted ( System e ) : void

Private Methods

Méthode Description
ComputeBufferChecksum ( byte buffer ) : ushort
CreateSendMessageBuffer ( IcmpHeader header, byte payload ) : byte[]
CreateTimedOutPingReply ( ) : PingReply
Ping ( ) : System.ComponentModel
SendIcmpEchoRequestOverRawSocket ( IPAddress address, byte buffer, int timeout, PingOptions options ) : Task
SendPingAsyncCore ( IPAddress address, byte buffer, int timeout, PingOptions options ) : Task
SendWithPingUtility ( IPAddress address, byte buffer, int timeout, PingOptions options ) : Task

Method Details

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OnPingCompleted() protected méthode

protected OnPingCompleted ( System e ) : void
e System
Résultat void

Ping() public méthode

public Ping ( )

Send() public méthode

public Send ( System address ) : PingReply
address System
Résultat PingReply

Send() public méthode

public Send ( System address, int timeout ) : PingReply
address System
timeout int
Résultat PingReply

Send() public méthode

public Send ( System address, int timeout, byte buffer ) : PingReply
address System
timeout int
buffer byte
Résultat PingReply

Send() public méthode

public Send ( System address, int timeout, byte buffer, System options ) : PingReply
address System
timeout int
buffer byte
options System
Résultat PingReply

Send() public méthode

public Send ( string hostNameOrAddress ) : PingReply
hostNameOrAddress string
Résultat PingReply

Send() public méthode

public Send ( string hostNameOrAddress, int timeout ) : PingReply
hostNameOrAddress string
timeout int
Résultat PingReply

Send() public méthode

public Send ( string hostNameOrAddress, int timeout, byte buffer ) : PingReply
hostNameOrAddress string
timeout int
buffer byte
Résultat PingReply

Send() public méthode

public Send ( string hostNameOrAddress, int timeout, byte buffer, System options ) : PingReply
hostNameOrAddress string
timeout int
buffer byte
options System
Résultat PingReply

SendAsync() public méthode

public SendAsync ( System address, int timeout, byte buffer, System options, object userToken ) : void
address System
timeout int
buffer byte
options System
userToken object
Résultat void

SendAsync() public méthode

public SendAsync ( System address, int timeout, byte buffer, object userToken ) : void
address System
timeout int
buffer byte
userToken object
Résultat void

SendAsync() public méthode

public SendAsync ( System address, int timeout, object userToken ) : void
address System
timeout int
userToken object
Résultat void

SendAsync() public méthode

public SendAsync ( System address, object userToken ) : void
address System
userToken object
Résultat void

SendAsync() public méthode

public SendAsync ( string hostNameOrAddress, int timeout, byte buffer, System options, object userToken ) : void
hostNameOrAddress string
timeout int
buffer byte
options System
userToken object
Résultat void

SendAsync() public méthode

public SendAsync ( string hostNameOrAddress, int timeout, byte buffer, object userToken ) : void
hostNameOrAddress string
timeout int
buffer byte
userToken object
Résultat void

SendAsync() public méthode

public SendAsync ( string hostNameOrAddress, int timeout, object userToken ) : void
hostNameOrAddress string
timeout int
userToken object
Résultat void

SendAsync() public méthode

public SendAsync ( string hostNameOrAddress, object userToken ) : void
hostNameOrAddress string
userToken object
Résultat void

SendAsyncCancel() public méthode

public SendAsyncCancel ( ) : void
Résultat void

SendPingAsync() public méthode

public SendPingAsync ( System address ) : System.Threading.Tasks.Task
address System
Résultat System.Threading.Tasks.Task

SendPingAsync() public méthode

public SendPingAsync ( System address, int timeout ) : System.Threading.Tasks.Task
address System
timeout int
Résultat System.Threading.Tasks.Task

SendPingAsync() public méthode

public SendPingAsync ( System address, int timeout, byte buffer ) : System.Threading.Tasks.Task
address System
timeout int
buffer byte
Résultat System.Threading.Tasks.Task

SendPingAsync() public méthode

public SendPingAsync ( System address, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task
address System
timeout int
buffer byte
options System
Résultat System.Threading.Tasks.Task

SendPingAsync() public méthode

public SendPingAsync ( string hostNameOrAddress ) : System.Threading.Tasks.Task
hostNameOrAddress string
Résultat System.Threading.Tasks.Task

SendPingAsync() public méthode

public SendPingAsync ( string hostNameOrAddress, int timeout ) : System.Threading.Tasks.Task
hostNameOrAddress string
timeout int
Résultat System.Threading.Tasks.Task

SendPingAsync() public méthode

public SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer ) : System.Threading.Tasks.Task
hostNameOrAddress string
timeout int
buffer byte
Résultat System.Threading.Tasks.Task

SendPingAsync() public méthode

public SendPingAsync ( string hostNameOrAddress, int timeout, byte buffer, System options ) : System.Threading.Tasks.Task
hostNameOrAddress string
timeout int
buffer byte
options System
Résultat System.Threading.Tasks.Task