Network Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a property, event, and methods for interacting with the network to which the computer is connected.
public ref class Network
public class Network
type Network = class
Public Class Network
- Inheritance
-
Network
This example uploads the file Order.txt
to http://www.cohowinery.com/uploads
.
My.Computer.Network.UploadFile (
"C:\My Documents\Order.txt",
"http://www.cohowinery.com/uploads.aspx")
The following table lists examples of tasks involving the My.Computer.Network
object.
To | See |
---|---|
Upload a file | How to: Upload a File |
Download a file | How to: Download a File |
Check connection status | How to: Check Connection Status |
Is |
Indicates whether a computer is connected to a network. |
Download |
Downloads the specified remote file and saves it in the specified location. |
Download |
Downloads the specified remote file and saves it in the specified location. |
Download |
Downloads the specified remote file and saves it in the specified location. |
Download |
Downloads the specified remote file and saves it in the specified location. |
Download |
Downloads the specified remote file and saves it in the specified location. |
Download |
Downloads the specified remote file and saves it in the specified location. |
Download |
Downloads the specified remote file and saves it in the specified location. |
Download |
Downloads the specified remote file and saves it in the specified location. |
Download |
Downloads the specified remote file and saves it in the specified location. |
Download |
Downloads the specified remote file and saves it in the specified location. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Ping(String, Int32) |
Pings the specified server. |
Ping(String) |
Pings the specified server. |
Ping(Uri, Int32) |
Pings the specified server. |
Ping(Uri) |
Pings the specified server. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Upload |
Sends the specified file to the specified host address. |
Upload |
Sends the specified file to the specified host address. |
Upload |
Sends the specified file to the specified host address. |
Upload |
Sends the specified file to the specified host address. |
Upload |
Sends the specified file to the specified host address. |
Upload |
Sends the specified file to the specified host address. |
Upload |
Sends the specified file to the specified host address. |
Upload |
Sends the specified file to the specified host address. |
Upload |
Sends the specified file to the specified host address. |
Upload |
Sends the specified file to the specified host address. |
Network |
Occurs when the network availability changes. |
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: