BuildServiceHostUtilities.ChangeInteractive Method (Boolean, Boolean)
Changes the service interactive flag for the currently registered service host.
Namespace: Microsoft.TeamFoundation.Build.Config
Assembly: Microsoft.TeamFoundation.Build.Config (in Microsoft.TeamFoundation.Build.Config.dll)
Syntax
'Declaration
Public Shared Sub ChangeInteractive ( _
interactive As Boolean, _
autoStart As Boolean _
)
public static void ChangeInteractive(
bool interactive,
bool autoStart
)
public:
static void ChangeInteractive(
bool interactive,
bool autoStart
)
static member ChangeInteractive :
interactive:bool *
autoStart:bool -> unit
public static function ChangeInteractive(
interactive : boolean,
autoStart : boolean
)
Parameters
interactive
Type: System.BooleanThe way the service runs: as an interactive process or as a windows service.
autoStart
Type: System.BooleanIf non-interactive, should the process be set to auto-start
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.