IProfileService.SetAttribute Method (TeamFoundationRequestContext, Guid, ProfileAttribute)
Conditionally sets an attribute in a profile.
Namespace: Microsoft.VisualStudio.Services.Profile
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Function SetAttribute ( _
requestContext As TeamFoundationRequestContext, _
identityId As Guid, _
attribute As ProfileAttribute _
) As Integer
int SetAttribute(
TeamFoundationRequestContext requestContext,
Guid identityId,
ProfileAttribute attribute
)
int SetAttribute(
TeamFoundationRequestContext^ requestContext,
Guid identityId,
ProfileAttribute^ attribute
)
abstract SetAttribute :
requestContext:TeamFoundationRequestContext *
identityId:Guid *
attribute:ProfileAttribute -> int
function SetAttribute(
requestContext : TeamFoundationRequestContext,
identityId : Guid,
attribute : ProfileAttribute
) : int
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- identityId
Type: System.Guid
attribute
Type: Microsoft.VisualStudio.Services.Profile.ProfileAttributeAttribute to update
Return Value
Type: System.Int32
The revision of the updated attribute
Remarks
If attribute does not exist then a new attribute is added to the set of attributes. If attribute exists then the attribute is updated if and only if the revision passed in attribute matches with the existing attribute revision.
.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.