Windows Dev Center

RestartService Class

Activity to invoke the Microsoft.PowerShell.Management\Restart-Service command in a workflow. Introduced in Windows PowerShell 3.0.


Namespace: Microsoft.PowerShell.Management.Activities
Assembly: Microsoft.PowerShell.Management.Activities (in Microsoft.PowerShell.Management.Activities.dll)

'Usage
Dim instance As RestartService

'Declaration
<GeneratedCodeAttribute("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")> _
Public NotInheritable Class RestartService
	Inherits PSRemotingActivity
/** @attribute GeneratedCodeAttribute("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0") */ 
public final class RestartService extends PSRemotingActivity
GeneratedCodeAttribute("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0") 
public final class RestartService extends PSRemotingActivity

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

 

Target Platforms


Show:
© 2015 Microsoft