Where is the “Invoke” member in System.Management.Automation.VerbsCommon?
-
19-09-2019 - |
Question
I'm trying to create a cmdlet with the name Invoke-Something. But I cannot find the member "Invoke" to put in the attribute:
[Cmdlet(VerbsCommon.Invoke, "Something", SupportsShouldProcess = true)]
^^^^^^
What am I missing?
Solution
I've found it: VerbsLifecycle.Invoke
check: http://msdn.microsoft.com/en-us/library/ms714428(VS.85).aspx
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow