Megosztás a következőn keresztül:


ITeamProjectCollectionServicing.DisableServicing Method (String, 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, _
    processIdentifier As String _
) As Boolean
bool DisableServicing(
    string reason,
    string processIdentifier
)
bool DisableServicing(
    String^ reason, 
    String^ processIdentifier
)
abstract DisableServicing : 
        reason:string * 
        processIdentifier:string -> bool
function DisableServicing(
    reason : String, 
    processIdentifier : String
) : boolean

Parameters

  • reason
    Type: System.String

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

  • processIdentifier
    Type: System.String

    A String uniquely identifying the calling process to aid investigation by an administrator. For example: "Machine: MYBOX; ProcessName: Upgrade.exe; PID: 1234; User: jdoe"

Return Value

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

.NET Framework Security

See Also

Reference

ITeamProjectCollectionServicing Interface

DisableServicing Overload

Microsoft.TeamFoundation.Framework.Client Namespace