1 out of 1 rated this helpful - Rate this topic

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

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

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

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")

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

No permissions are required.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.