My.Computer.Network Property 

Gets an object that provides a property and methods for interacting with the network to which the computer is connected.

' Usage
Dim value As Microsoft.VisualBasic.Devices.Network = My.Computer.Network
' Declaration
Public ReadOnly Property Network As MyNetwork

Return Value

This property returns the My.Computer.Network Object for the computer.

Remarks

This property provides easy access to the My.Computer.Network Object.

Example

This example uploads the file Order.txt to https://www.cohowinery.com/uploads.

My.Computer.Network.UploadFile ( _
"C:\My Documents\Order.txt", _
"https://www.cohowinery.com/uploads.aspx")

Requirements

Namespace: Microsoft.VisualBasic.Devices

Class: Computer, ServerComputer

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

Availability by Project Type

Project type Available

Windows Application

Yes

Class Library

Yes

Console Application

Yes

Windows Control Library

Yes

Web Control Library

Yes

Windows Service

Yes

Web Site

Yes

Permissions

No permissions are required.

See Also

Reference

My.Computer Object
My.Computer.Network Object

Other Resources

Performing Network Operations