Share via


IProfileService.GetAttribute Method

Retrieves the attribute object for the given atrribute descriptor and profile.

Namespace:  Microsoft.VisualStudio.Services.Profile
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Function GetAttribute ( _
    requestContext As TeamFoundationRequestContext, _
    id As Guid, _
    descriptor As AttributeDescriptor _
) As ProfileAttribute
ProfileAttribute GetAttribute(
    TeamFoundationRequestContext requestContext,
    Guid id,
    AttributeDescriptor descriptor
)
ProfileAttribute^ GetAttribute(
    TeamFoundationRequestContext^ requestContext, 
    Guid id, 
    AttributeDescriptor^ descriptor
)
abstract GetAttribute : 
        requestContext:TeamFoundationRequestContext * 
        id:Guid * 
        descriptor:AttributeDescriptor -> ProfileAttribute
function GetAttribute(
    requestContext : TeamFoundationRequestContext, 
    id : Guid, 
    descriptor : AttributeDescriptor
) : ProfileAttribute

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: Microsoft.VisualStudio.Services.Profile.ProfileAttribute
A ProfileAttribute object containing the name, value and a lastmodified timestamp

Exceptions

Exception Condition
ProfileAttributeNotFoundException

If specified attribute does not exist.

.NET Framework Security

See Also

Reference

IProfileService Interface

Microsoft.VisualStudio.Services.Profile Namespace