|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
TcpClient.ReceiveTimeout Propriedade
Assembly: System (em System. dll)
Valor da propriedade
Tipo: System.Int32Windows Mobile para Pocket PC, Windows Mobile para Smartphone, O Windows CE Platform Note:
// Sets the receive time out using the ReceiveTimeout public property. tcpClient.ReceiveTimeout = 5000; // Gets the receive time out using the ReceiveTimeout public property. if (tcpClient.ReceiveTimeout == 5000) Console.WriteLine ("The receive time out limit was successfully set " + tcpClient.ReceiveTimeout.ToString ());
// Sets the receive time out using the ReceiveTimeout public property.
tcpClient.set_ReceiveTimeout(5);
// Gets the receive time out using the ReceiveTimeout public property.
if (tcpClient.get_ReceiveTimeout() == 5) {
Console.WriteLine("The receive time out limit was successfully set "
+ ((Int32)tcpClient.get_ReceiveTimeout()).ToString());
}