BuildServiceHostUtilities.Unregister Method
Unregisters the currently registered service host and optionally deletes all resources (controller and agents).
If you plan to move this service host to another computer, pass in false for deleteResources. If not, pass true.
Namespace: Microsoft.TeamFoundation.Build.Config
Assembly: Microsoft.TeamFoundation.Build.Config (in Microsoft.TeamFoundation.Build.Config.dll)
Syntax
'Declaration
Public Shared Sub Unregister ( _
deleteResources As Boolean, _
ignoreErrors As Boolean _
)
public static void Unregister(
bool deleteResources,
bool ignoreErrors
)
public:
static void Unregister(
bool deleteResources,
bool ignoreErrors
)
static member Unregister :
deleteResources:bool *
ignoreErrors:bool -> unit
public static function Unregister(
deleteResources : boolean,
ignoreErrors : boolean
)
Parameters
- deleteResources
Type: System.Boolean
- ignoreErrors
Type: System.Boolean
.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.