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.
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, _
    id As Guid, _
    descriptor As AttributeDescriptor, _
    value As String _
) As Integer
int SetAttribute(
    TeamFoundationRequestContext requestContext,
    Guid id,
    AttributeDescriptor descriptor,
    string value
)
int SetAttribute(
    TeamFoundationRequestContext^ requestContext, 
    Guid id, 
    AttributeDescriptor^ descriptor, 
    String^ value
)
abstract SetAttribute : 
        requestContext:TeamFoundationRequestContext * 
        id:Guid * 
        descriptor:AttributeDescriptor * 
        value:string -> int
function SetAttribute(
    requestContext : TeamFoundationRequestContext, 
    id : Guid, 
    descriptor : AttributeDescriptor, 
    value : String
) : int
Parameters
- requestContext
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- 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 
- descriptor 
 Type: Microsoft.VisualStudio.Services.Profile.AttributeDescriptor- Attribute descriptor 
- value 
 Type: System.String- Attribute value 
Return Value
Type: System.Int32
The revision of the updated attribute
Remarks
If the attribute exists then the attribute is updated, or else a new attribute is added to the set of attributes.
.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.