Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.StringA short description of why servicing is being disabled. Used for exceptions on servicing attempts.
processIdentifier
Type: System.StringA 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
- 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.