简体   繁体   English

System.Management.Automation.VerbsCommon中的“调用”成员在哪里?

[英]Where is the “Invoke” member in System.Management.Automation.VerbsCommon?

I'm trying to create a cmdlet with the name Invoke-Something. 我正在尝试创建一个名为Invoke-Something的cmdlet。 But I cannot find the member "Invoke" to put in the attribute: 但是我找不到成员“ Invoke”放入属性中:

[Cmdlet(VerbsCommon.Invoke, "Something", SupportsShouldProcess = true)]
                    ^^^^^^

What am I missing? 我想念什么?

I've found it: VerbsLifecycle.Invoke 我找到了:VerbsLifecycle.Invoke

check: http://msdn.microsoft.com/en-us/library/ms714428(VS.85).aspx 检查: http : //msdn.microsoft.com/en-us/library/ms714428(VS.85).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM