共用方式為


TeamFoundationVersionControlService.SetVersionedItemProperty 方法

注意:這個應用程式開發介面現在已經過時。

設定指定之已建立版本的項目的屬性。

命名空間:  Microsoft.TeamFoundation.VersionControl.Server
組件:  Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

語法

'宣告
<ObsoleteAttribute("Please use SetVersionedItemAttribute to set attributes on versioned items.",  _
    False)> _
Public Sub SetVersionedItemProperty ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    workspaceOwner As String, _
    itemSpecs As ItemSpec(), _
    versionSpec As VersionSpec, _
    deletedState As DeletedState, _
    itemType As ItemType, _
    propertyValues As PropertyValue() _
)
[ObsoleteAttribute("Please use SetVersionedItemAttribute to set attributes on versioned items.", 
    false)]
public void SetVersionedItemProperty(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] itemSpecs,
    VersionSpec versionSpec,
    DeletedState deletedState,
    ItemType itemType,
    PropertyValue[] propertyValues
)

參數

  • workspaceName
    類型:System.String
    使用的工作區名稱為本機路徑對伺服器路徑對應,如果提供區域路徑 itemSpecs。
  • workspaceOwner
    類型:System.String
    工作區擁有人的名稱,如果提供工作區名稱。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間