共用方式為


IProfileService.DeleteAttribute 方法

刪除指定的 atrribute 名稱和設定檔屬性的物件。

命名空間:  Microsoft.VisualStudio.Services.Profile
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
Function DeleteAttribute ( _
    requestContext As TeamFoundationRequestContext, _
    id As Guid, _
    descriptor As AttributeDescriptor _
) As Integer
int DeleteAttribute(
    TeamFoundationRequestContext requestContext,
    Guid id,
    AttributeDescriptor descriptor
)

參數

  • id
    類型:System.Guid
    設定檔關聯識別的 Guid。其中存在識別和設定檔之間的一對一對應。

傳回值

類型:System.Int32
更新屬性的修訂

例外狀況

例外狀況 條件
ProfileAttributeNotFoundException

如果指定屬性不存在。

.NET Framework 安全性

請參閱

參考

IProfileService 介面

Microsoft.VisualStudio.Services.Profile 命名空間