IProfileService.SetAttribute 方法 (TeamFoundationRequestContext, Guid, AttributeDescriptor, String)

在配置文件中设置特性。

命名空间:  Microsoft.VisualStudio.Services.Profile
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
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
)

参数

  • id
    类型:System.Guid
    配置文件关联标识的 GUID。存在一对一映射。标识和配置文件之间

返回值

类型:System.Int32
更新属性的版本

备注

如果属性存在此属性更新,或者新的属性添加到设置属性。

.NET Framework 安全性

请参阅

参考

IProfileService 接口

SetAttribute 重载

Microsoft.VisualStudio.Services.Profile 命名空间