VerbsLifecycle Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the lifecycle verbs, such as Enable, Disable, Start, and Stop, that can be used to name cmdlets.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.VerbsLifecycle

public static class VerbsLifecycle

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticApprove

Specifies an action that confirms or agrees to the status of a resource or process. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticAssert

Specifies an action that affirms the state of a resource. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticComplete

Specifies an action that concludes an operation. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticConfirm

Specifies an action that acknowledges, verifies, or validates the state of a resource or process. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticDeny

Specifies an action that refuses, objects, blocks, or opposes the state of a resource or process. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticDisable

Specifies an action that configures a resource to an unavailable or inactive state.

System_CAPS_pubfieldSystem_CAPS_staticEnable

Specifies an action that configures a resource to an available or active state. For example, the Enable-PSBreakpoint cmdlet makes a breakpoint active.

System_CAPS_pubfieldSystem_CAPS_staticInstall

Specifies an action that places a resource in a location, and optionally initializes it.

System_CAPS_pubfieldSystem_CAPS_staticInvoke

Specifies an action that runs a command or method. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticRegister

Specifies an action that creates an entry for a resource in a repository, such as a database. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticRequest

Specifies an action that asks for a resource or asks for permissions. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticRestart

Specifies an action that stops an operation and then starts it again. For example, the Restart-Service cmdlet stops and then starts a service.

System_CAPS_pubfieldSystem_CAPS_staticResume

Specifies an action that starts an operation that has been suspended. For example, the Resume-Service cmdlet starts a service that has been suspended.

System_CAPS_pubfieldSystem_CAPS_staticStart

Specifies an action that initiates an operation. For example, the Start-Service cmdlet starts a service.

System_CAPS_pubfieldSystem_CAPS_staticStop

Specifies an action that discontinues an activity.

System_CAPS_pubfieldSystem_CAPS_staticSubmit

Specifies an action that presents a resource for approval. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticSuspend

Specifies an action that pauses an activity. For example, the Suspend-Service cmdlet pauses a service.

System_CAPS_pubfieldSystem_CAPS_staticUninstall

Specifies an action that removes a resource from an indicated location.

System_CAPS_pubfieldSystem_CAPS_staticUnregister

Specifies an action that removes the entry for a resource from a repository. This field is introduced in Windows PowerShell 2.0.

System_CAPS_pubfieldSystem_CAPS_staticWait

Specifies an action that pauses an operation until a specified event occurs. For example, the Wait-Job cmdlet pauses the command line until one or more of the background jobs are complete. This field is introduced in Windows PowerShell 2.0.

The verb portion of a cmdlet name specifies the action that is taken by the cmdlet and is specified by the Cmdlet attribute. For more information about the declaration syntax used to specify the Cmdlet attribute, see Cmdlet Attribute Declaration.

For more information about the guidelines for selecting verb names, see Approved Verbs for Windows PowerShell Commands.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: