Freigeben über


IProfileService.SetAttribute-Methode (TeamFoundationRequestContext, Guid, ProfileAttribute)

Legt bedingt ein Attribut in einem Profil.

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

Syntax

'Declaration
Function SetAttribute ( _
    requestContext As TeamFoundationRequestContext, _
    identityId As Guid, _
    attribute As ProfileAttribute _
) As Integer
int SetAttribute(
    TeamFoundationRequestContext requestContext,
    Guid identityId,
    ProfileAttribute attribute
)

Parameter

Rückgabewert

Typ: System.Int32
Die aktualisierten Revision des Attributs

Hinweise

Wenn Attribut anschließend nicht vorhanden, wird ein neues Attribut das Festlegen von Attributen hinzugefügt. Wenn Attribut dann ist, wird das Attribut aktualisiert, und nur die Revision in attribute übergeben, mit der vorhandenen Attributrevision übereinstimmt.

.NET Framework-Sicherheit

Siehe auch

Referenz

IProfileService Schnittstelle

SetAttribute-Überladung

Microsoft.VisualStudio.Services.Profile-Namespace