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.
Sets an attribute in a profile.
Namespace: Microsoft.VisualStudio.Services.Profile
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Function SetAttribute ( _
requestContext As TeamFoundationRequestContext, _
id As Guid, _
descriptor As AttributeDescriptor, _
value As String _
) As Integer
int SetAttribute(
TeamFoundationRequestContext requestContext,
Guid id,
AttributeDescriptor descriptor,
string value
)
int SetAttribute(
TeamFoundationRequestContext^ requestContext,
Guid id,
AttributeDescriptor^ descriptor,
String^ value
)
abstract SetAttribute :
requestContext:TeamFoundationRequestContext *
id:Guid *
descriptor:AttributeDescriptor *
value:string -> int
function SetAttribute(
requestContext : TeamFoundationRequestContext,
id : Guid,
descriptor : AttributeDescriptor,
value : String
) : 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.AttributeDescriptorAttribute descriptor
value
Type: System.StringAttribute value
Return Value
Type: System.Int32
The revision of the updated attribute
Remarks
If the attribute exists then the attribute is updated, or else a new attribute is added to the set of attributes.
.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.