Export (0) Print
Expand All

My.Computer.Info Property

Gets an object that provides properties for getting information about the computer's memory, loaded assemblies, name, and operating system.

' Usage
Dim value As Microsoft.VisualBasic.Devices.ComputerInfo = My.Computer.Info
' Declaration
Public ReadOnly Property Info As MyComputerInfo

This property returns the My.Computer.Info object for the computer.

This property provides easy access to the My.Computer.Info object. For more information, see My.Computer.Info Object.

This example uses the My.Computer.Info.AvailablePhysicalMemory property to display the amount of available physical memory for the computer on which the code runs.

MsgBox("Computer's available physical memory: " & _
    My.Computer.Info.AvailablePhysicalMemory)

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.

Community Additions

ADD
Show:
© 2015 Microsoft