Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
id
Type: System.GuidThe Guid of the Identity with which the Profile is associated. There exists a 1 to 1 mapping between an Identity and a Profile
descriptor
Type: Microsoft.VisualStudio.Services.Profile.AttributeDescriptorDescriptor of the attribute
Return Value
Type: System.Int32
The revision of the updated attribute
Exceptions
Exception | Condition |
---|---|
ProfileAttributeNotFoundException | If specified attribute does not exist. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.