TeamFoundationSecurityNamespace.RenameToken Method

This function will move the ACL for the existingToken and all its children to the corresponding newToken. It will begin by querying permissions on the existing token. If none exist, null will be returned.

If permissions do exist, all existing permissions under newToken will be cleared and the existing ACLs will be copied over to the newToken path. If the copy parameter is false, the ACLs under existingToken will be deleted.

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

Syntax

'Declaration
Public Sub RenameToken ( _
    requestContext As TeamFoundationRequestContext, _
    existingToken As String, _
    newToken As String, _
    copy As Boolean _
)
public void RenameToken(
    TeamFoundationRequestContext requestContext,
    string existingToken,
    string newToken,
    bool copy
)
public:
void RenameToken(
    TeamFoundationRequestContext^ requestContext, 
    String^ existingToken, 
    String^ newToken, 
    bool copy
)
member RenameToken : 
        requestContext:TeamFoundationRequestContext * 
        existingToken:string * 
        newToken:string * 
        copy:bool -> unit
public function RenameToken(
    requestContext : TeamFoundationRequestContext, 
    existingToken : String, 
    newToken : String, 
    copy : boolean
)

Parameters

  • copy
    Type: System.Boolean

    If true, the ACLs will be copied to the new location and will still remain at the old location.

.NET Framework Security

See Also

Reference

TeamFoundationSecurityNamespace Class

Microsoft.TeamFoundation.Framework.Server Namespace