Condividi tramite


IProfileService.SetAttribute Method (TeamFoundationRequestContext, Guid, AttributeDescriptor, String)

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

  • 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 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

See Also

Reference

IProfileService Interface

SetAttribute Overload

Microsoft.VisualStudio.Services.Profile Namespace