ComputerInfo Class

ComputerInfo Class

 

Provides properties for getting information about the computer's memory, loaded assemblies, name, and operating system.

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

System.Object
  Microsoft.VisualBasic.Devices.ComputerInfo

[HostProtectionAttribute(SecurityAction.LinkDemand, Resources = HostProtectionResource.ExternalProcessMgmt)]
public class ComputerInfo

NameDescription
System_CAPS_pubmethodComputerInfo()

Initializes a new instance of the ComputerInfo class.

NameDescription
System_CAPS_pubpropertyAvailablePhysicalMemory

Gets the total amount of free physical memory for the computer.

System_CAPS_pubpropertyAvailableVirtualMemory

Gets the total amount of the computer's free virtual address space.

System_CAPS_pubpropertyInstalledUICulture

Gets the current UI culture installed with the operating system.

System_CAPS_pubpropertyOSFullName

Gets the full operating system name.

System_CAPS_pubpropertyOSPlatform

Gets the platform identifier for the operating system of the computer.

System_CAPS_pubpropertyOSVersion

Gets the version of the computer's operating system.

System_CAPS_pubpropertyTotalPhysicalMemory

Gets the total amount of physical memory for the computer.

System_CAPS_pubpropertyTotalVirtualMemory

Gets the total amount of virtual address space available for the computer.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The properties exposed by the My.Computer.Info object return information about the computer from which the application is deployed, as determined at run time. Typically, this data differs from what was available on the development computer.

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)

.NET Framework
Available since 2.0

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

Return to top
Show:
© 2016 Microsoft