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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe context for the current request.
existingToken
Type: System.StringThe token to be renamed.
newToken
Type: System.StringThe new name for the token.
copy
Type: System.BooleanIf true, the ACLs will be copied to the new location and will still remain at the old location.
.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.