Network Class

Note: This class is new in the .NET Framework version 2.0.

Provides a property, event, and methods for interacting with the network to which the computer is connected.

Namespace: Microsoft.VisualBasic.Devices
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

public class Network
public class Network
public class Network

For more detailed information, see the Visual Basic topic My.Computer.Network Object.

The following table lists examples of tasks involving the My.Computer.Network object.

This example uploads the file Order.txt to

My.Computer.Network.UploadFile ( _
"C:\My Documents\Order.txt", _


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions