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

Return Value

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

Remarks

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

Example

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)

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.Info Object