Wo ist das „Invoke“ Mitglied in System.Management.Automation.VerbsCommon?
-
19-09-2019 - |
Frage
Ich versuche, ein Cmdlet mit dem Namen Invoke-Etwas zu erstellen. Aber ich kann nicht das Element „Invoke“ finde in dem Attribute zu setzen:
[Cmdlet(VerbsCommon.Invoke, "Something", SupportsShouldProcess = true)]
^^^^^^
Was bin ich fehlt?
Lösung
Ich habe festgestellt, es: VerbsLifecycle.Invoke
Kontrolle: http://msdn.microsoft. com / en-us / library / ms714428 (VS.85) aspx
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow