Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Retrieves the attribute object for the given atrribute descriptor and profile.
Namespace: Microsoft.VisualStudio.Services.Profile
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Function GetAttribute ( _
requestContext As TeamFoundationRequestContext, _
id As Guid, _
descriptor As AttributeDescriptor _
) As ProfileAttribute
ProfileAttribute GetAttribute(
TeamFoundationRequestContext requestContext,
Guid id,
AttributeDescriptor descriptor
)
ProfileAttribute^ GetAttribute(
TeamFoundationRequestContext^ requestContext,
Guid id,
AttributeDescriptor^ descriptor
)
abstract GetAttribute :
requestContext:TeamFoundationRequestContext *
id:Guid *
descriptor:AttributeDescriptor -> ProfileAttribute
function GetAttribute(
requestContext : TeamFoundationRequestContext,
id : Guid,
descriptor : AttributeDescriptor
) : ProfileAttribute
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: Microsoft.VisualStudio.Services.Profile.ProfileAttribute
A ProfileAttribute object containing the name, value and a lastmodified timestamp
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.