Condividi tramite


IProfileService.Update Method

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

  • id
    Type: System.Guid

    The Guid of the Identity with which the Profile is associated. There exists a 1 to 1 mapping between an Identity and a 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

See Also

Reference

IProfileService Interface

Microsoft.VisualStudio.Services.Profile Namespace