Creates / updates a branch object. If the item exists but is not a branch object It will mark the item as a root of a branch.
Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Sub UpdateBranchObject ( _
    requestContext As TeamFoundationRequestContext, _
    branchProperties As BranchProperties, _
    updateExisting As Boolean, _
    maxClientPathLength As PathLength _
)
public void UpdateBranchObject(
    TeamFoundationRequestContext requestContext,
    BranchProperties branchProperties,
    bool updateExisting,
    PathLength maxClientPathLength
)
public:
void UpdateBranchObject(
    TeamFoundationRequestContext^ requestContext, 
    BranchProperties^ branchProperties, 
    bool updateExisting, 
    PathLength maxClientPathLength
)
member UpdateBranchObject : 
        requestContext:TeamFoundationRequestContext * 
        branchProperties:BranchProperties * 
        updateExisting:bool * 
        maxClientPathLength:PathLength -> unit
public function UpdateBranchObject(
    requestContext : TeamFoundationRequestContext, 
    branchProperties : BranchProperties, 
    updateExisting : boolean, 
    maxClientPathLength : PathLength
)
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context. 
- branchProperties 
 Type: Microsoft.TeamFoundation.VersionControl.Server.BranchProperties- The branch object to create, update. 
- updateExisting 
 Type: System.Boolean- True if you wish to update an existing branch. 
- maxClientPathLength 
 Type: Microsoft.TeamFoundation.VersionControl.Common.PathLength- The maximum client supported server path length. 
.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.