如何以编程方式获取缓存列表? [英] How to get list of caches programmatically?

查看:93
本文介绍了如何以编程方式获取缓存列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

 

使用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.

 

谢谢。


这篇关于如何以编程方式获取缓存列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆