Export (0) Print
Expand All

VerbsCommon.Switch Field

Specifies an action that alternates between two resources, such as to change between two locations, responsibilities, or states.

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

Dim value As String

value = VerbsCommon.Switch

Public Const Switch As String
public static final String Switch
public const var Switch : String

This example shows how this field is used in the Cmdlet attribute.

For consistency with other cmdlets that perform the same action, do not use the verbs Switchover, Failover, Swap, or Change for this action.

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 that is used to specify the Cmdlet attribute, see Cmdlet Attribute Declaration.

For more information about the guidelines for selecting verb names, see Cmdlet Verbs.


Target Platforms

© 2015 Microsoft