开发者

Where is the "Invoke" member in System.Management.Automation.VerbsCommon?

开发者 https://www.devze.com 2022-12-11 12:59 出处:网络
I\'m trying to create a cmdlet with the name Invoke-So开发者_运维知识库mething. But I cannot find the member \"Invoke\" to put in the attribute:

I'm trying to create a cmdlet with the name Invoke-So开发者_运维知识库mething. But I cannot find the member "Invoke" to put in the attribute:

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

What am I missing?


I've found it: VerbsLifecycle.Invoke

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

0

精彩评论

暂无评论...
验证码 换一张
取 消