Share via


ITeamProjectCollectionServicing.DisableServicing Method (String)

Disables creation and servicing of team project collections, and waits for in-progress servicing to complete. If servicing is already disabled, simply returns false.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Function DisableServicing ( _
    reason As String _
) As Boolean
bool DisableServicing(
    string reason
)
bool DisableServicing(
    String^ reason
)
abstract DisableServicing : 
        reason:string -> bool
function DisableServicing(
    reason : String
) : boolean

Parameters

  • reason
    Type: System.String

    A short description of why servicing is being disabled. Used for exceptions on servicing attempts.

Return Value

Type: System.Boolean
True if servicing was previously enabled. False if servicing was already disabled.

Remarks

A processIdentifier String is generated and sent with this request. (See overload.)

.NET Framework Security

See Also

Reference

ITeamProjectCollectionServicing Interface

DisableServicing Overload

Microsoft.TeamFoundation.Framework.Client Namespace