RestartService Class

Activity to invoke the Microsoft.PowerShell.Management\Restart-Service command in a workflow. This SDK programming element is 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

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft