Share via


IProfileService.DeleteAttribute Method

Deletes the attribute object for the given atrribute name and profile.

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

Syntax

'Declaration
Function DeleteAttribute ( _
    requestContext As TeamFoundationRequestContext, _
    id As Guid, _
    descriptor As AttributeDescriptor _
) As Integer
int DeleteAttribute(
    TeamFoundationRequestContext requestContext,
    Guid id,
    AttributeDescriptor descriptor
)
int DeleteAttribute(
    TeamFoundationRequestContext^ requestContext, 
    Guid id, 
    AttributeDescriptor^ descriptor
)
abstract DeleteAttribute : 
        requestContext:TeamFoundationRequestContext * 
        id:Guid * 
        descriptor:AttributeDescriptor -> int
function DeleteAttribute(
    requestContext : TeamFoundationRequestContext, 
    id : Guid, 
    descriptor : AttributeDescriptor
) : 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

Exceptions

Exception Condition
ProfileAttributeNotFoundException

If specified attribute does not exist.

.NET Framework Security

See Also

Reference

IProfileService Interface

Microsoft.VisualStudio.Services.Profile Namespace