IBuildDefinition.AddRetentionPolicy 方法

添加一项保留策略到此生成定义保留策略列表。

命名空间:  Microsoft.TeamFoundation.Build.Client
程序集:  Microsoft.TeamFoundation.Build.Client(在 Microsoft.TeamFoundation.Build.Client.dll 中)

语法

声明
Function AddRetentionPolicy ( _
    reason As BuildReason, _
    status As BuildStatus, _
    numberToKeep As Integer, _
    deleteOptions As DeleteOptions _
) As IRetentionPolicy
IRetentionPolicy AddRetentionPolicy(
    BuildReason reason,
    BuildStatus status,
    int numberToKeep,
    DeleteOptions deleteOptions
)

参数

返回值

类型:Microsoft.TeamFoundation.Build.Client.IRetentionPolicy
新添加的保留策略。

.NET Framework 安全性

请参见

参考

IBuildDefinition 接口

Microsoft.TeamFoundation.Build.Client 命名空间