Click to Rate and Give Feedback

  Switch on low bandwidth view
SuspendServiceCommand Class
The Suspend-Service cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.


Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in microsoft.powershell.commands.management.dll)
Dim instance As SuspendServiceCommand
Visual Basic
<CmdletAttribute("Suspend", "Service", DefaultParameterSetName:="Default", SupportsShouldProcess:=True)> _
<OutputTypeAttribute(System.Compiler.TypeNode[])> _
Public NotInheritable Class SuspendServiceCommand
    Inherits ServiceOperationBaseCommand
C#
[CmdletAttribute("Suspend", "Service", DefaultParameterSetName="Default", SupportsShouldProcess=true)] 
[OutputTypeAttribute(System.Compiler.TypeNode[])] 
public sealed class SuspendServiceCommand : ServiceOperationBaseCommand
C++
[CmdletAttribute(L"Suspend", L"Service", DefaultParameterSetName=L"Default", SupportsShouldProcess=true)] 
[OutputTypeAttribute(System.Compiler.TypeNode[])] 
public ref class SuspendServiceCommand sealed : public ServiceOperationBaseCommand
J#
/** @attribute CmdletAttribute("Suspend", "Service", DefaultParameterSetName="Default", SupportsShouldProcess=true) */ 
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[]) */ 
public final class SuspendServiceCommand extends ServiceOperationBaseCommand
JScript
CmdletAttribute("Suspend", "Service", DefaultParameterSetName="Default", SupportsShouldProcess=true) 
OutputTypeAttribute(System.Compiler.TypeNode[]) 
public final class SuspendServiceCommand extends ServiceOperationBaseCommand

This cmdlet suspends (pauses) one or more running services. For more information about this cmdlet, see Suspend-Service in the Microsoft TechNet library.

For Help at the command line, type:

get-help suspend-service


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

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker