Compartilhar via


Método IProfileService.GetAttribute

Recupera o objeto de atributo para o descritor e o perfil dados de atrribute.

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

Sintaxe

'Declaração
Function GetAttribute ( _
    requestContext As TeamFoundationRequestContext, _
    id As Guid, _
    descriptor As AttributeDescriptor _
) As ProfileAttribute
ProfileAttribute GetAttribute(
    TeamFoundationRequestContext requestContext,
    Guid id,
    AttributeDescriptor descriptor
)

Parâmetros

  • id
    Tipo: System.Guid
    O GUID da identidade ao qual o perfil está associado.Existe um mapeamento 1 para 1 entre uma identidade e um perfil

Valor de retorno

Tipo: Microsoft.VisualStudio.Services.Profile.ProfileAttribute
Um objeto de ProfileAttribute que contém o nome, o valor e um carimbo de data/hora da última modificação

Exceções

Exceção Condição
ProfileAttributeNotFoundException

Se o atributo especificado não existe.

Segurança do .NET Framework

Consulte também

Referência

IProfileService Interface

Namespace Microsoft.VisualStudio.Services.Profile