BuildServiceHostProcess.Start Method
Start TFSBuildServiceHost either as a windows service or as an interactive process.
Namespace: Microsoft.TeamFoundation.Build.Config
Assembly: Microsoft.TeamFoundation.Build.Config (in Microsoft.TeamFoundation.Build.Config.dll)
Syntax
'Declaration
Public Shared Function Start ( _
args As String(), _
asService As Boolean, _
timeout As TimeSpan, _
<OutAttribute> ByRef message As String _
) As Boolean
public static bool Start(
string[] args,
bool asService,
TimeSpan timeout,
out string message
)
public:
static bool Start(
array<String^>^ args,
bool asService,
TimeSpan timeout,
[OutAttribute] String^% message
)
static member Start :
args:string[] *
asService:bool *
timeout:TimeSpan *
message:string byref -> bool
public static function Start(
args : String[],
asService : boolean,
timeout : TimeSpan,
message : String
) : boolean
Parameters
args
Type: array<System.String[]The arguments for the build service host.
asService
Type: System.BooleanWindows service.
timeout
Type: System.TimeSpanTimeout.
message
Type: System.String%In case of success, an empty or warning message is displayed; if a failure occurs, an error message is displayed.
Return Value
Type: System.Boolean
Service/Process started
.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.