如何以编程方式获取缓存列表?
问题描述:
大家好,
使用PowerShell时,我可以通过命令"Get-Cache"获取缓存列表。
When using PowerShell I can get the cache list by command "Get-Cache"
是否有可能从C#(VB.NET)获得相同的结果?
Is it possible to get the same from C#(VB.NET)?
应用程序结构版本:1.1
App fabric version: 1.1
谢谢,
Evgeny
答
没有这样的API。
There is no API as such.
您也可以以编程方式调用PowerShell命令并解析响应以获取缓存列表。
You can invoke the PowerShell command programatically as well and parse the response to get the list of caches.
谢谢。