Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET VB.NET
I am trying to get the Cached physical memory like what is displayed in the task manager.
 
I was able to get the physical memory and the free memory using
 
System.Management.ManagementClass(Win32_OperatingSystem)
 
but i am suck on getting the cached.
 
Any insight on how to achieve this would be greatly appreciated
 
I am trying to do this in a windows form that will be running on Microsoft servers.
 
I dont need to cache anything i just need to have the same cache value that is shown in the task manager.
Posted 21-Nov-12 6:33am
Edited 21-Nov-12 8:46am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

MSDN will help ya Smile | :)
  Permalink  
Comments
DinoRondelly at 21-Nov-12 14:17pm
   
Hey thanks for the reply, visual studio doesnt seem to want to import the namespace required for this and if i download the dll and add a reference to it i still cant get this name space to work.
 
I read somewhere while looking into this that only the full install of VS will have this namespace.
 
Is there any other way to get this information?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 375
1 Richard Deeming 240
2 _Amy 205
3 CHill60 195
4 Nirav Prabtani 178
0 OriginalGriff 8,104
1 Sergey Alexandrovich Kryukov 7,045
2 Maciej Los 4,039
3 Peter Leow 3,738
4 CHill60 2,912


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100