Partager via


IProfileService.DeleteAttribute, méthode

Supprime l'objet d'attribut pour le nom et le profil donnés d'atrribute.

Espace de noms :  Microsoft.VisualStudio.Services.Profile
Assembly :  Microsoft.TeamFoundation.Framework.Server (dans Microsoft.TeamFoundation.Framework.Server.dll)

Syntaxe

'Déclaration
Function DeleteAttribute ( _
    requestContext As TeamFoundationRequestContext, _
    id As Guid, _
    descriptor As AttributeDescriptor _
) As Integer
int DeleteAttribute(
    TeamFoundationRequestContext requestContext,
    Guid id,
    AttributeDescriptor descriptor
)

Paramètres

  • id
    Type : System.Guid
    Le Guid de l'identité à laquelle le profil est associé.Là existe un mappage 1 à 1 entre une identité et un profil

Valeur de retour

Type : System.Int32
La révision de l'attribut mis à jour

Exceptions

Exception Condition
ProfileAttributeNotFoundException

Si spécifié l'attribut n'existe pas.

Sécurité .NET Framework

Voir aussi

Référence

IProfileService Interface

Microsoft.VisualStudio.Services.Profile, espace de noms