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.
Partially updates the content of a profile by comparing changes with the contents of a given profile in parameter profile.
Namespace: Microsoft.VisualStudio.Services.Profile
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Function Update ( _
requestContext As TeamFoundationRequestContext, _
id As Guid, _
profile As Profile _
) As Integer
int Update(
TeamFoundationRequestContext requestContext,
Guid id,
Profile profile
)
int Update(
TeamFoundationRequestContext^ requestContext,
Guid id,
Profile^ profile
)
abstract Update :
requestContext:TeamFoundationRequestContext *
id:Guid *
profile:Profile -> int
function Update(
requestContext : TeamFoundationRequestContext,
id : Guid,
profile : Profile
) : int
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
id
Type: System.GuidThe Guid of the Identity with which the Profile is associated. There exists a 1 to 1 mapping between an Identity and a Profile
profile
Type: Microsoft.VisualStudio.Services.Profile.ProfileContainer object that contains the changes to be applied to the profile
Return Value
Type: System.Int32
The revision of the updated profile
Exceptions
Exception | Condition |
---|---|
NewerVersionOfProfileExists | If the revision in the parameter profile does not match to the current revision |
Remarks
A profile property is not updated if the property is set to null in parameter profile. A profile attribute is not updated if the attribute is missing from the list of attributes in profile.
.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.