是否有办法来自动转向一个BizTalk接收位置或关闭通过代码? [英] Is there a way to automate turning a BizTalk Receive Location on or off through code?
问题描述
有没有办法来自动在BizTalk接收位置的打开或关闭?好像应该有某种形式的API或类似的这种事情。我宁愿在C#中的工作,但WMI或某种脚本会工作了。
Is there a way to automate the turning on or off of a Receive Location in BizTalk? It seems like there should be some kind of API or some such for this kind of thing. I would prefer to work in C#, but WMI or some kind of script would work too.
推荐答案
此外ExplorerOM,因为你已经发现了,你也可以使用WMI启用/禁用接收位置(和控制发送端口)。
Besides ExplorerOM, as you've found out, you can also enable/disable receive locations (and control send ports) using WMI.
我有一个样本PowerShell脚本演示如何做这些事情< A HREF =http://github.com/tomasr/bts-ps-scripts/blob/master/bts-ports.ps1>这里,如果你有兴趣。
I have a sample PowerShell script that shows how to do those things here, if you're interested.
这篇关于是否有办法来自动转向一个BizTalk接收位置或关闭通过代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!