The interface for a retention policy in the server that is running Team Foundation Build.
Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
声明
Public Interface IRetentionPolicy
public interface IRetentionPolicy
public interface class IRetentionPolicy
type IRetentionPolicy =  interface end
public interface IRetentionPolicy
The IRetentionPolicy type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | BuildDefinition | Gets the build definition that owns this retention policy. | 
| .gif) | BuildReason | Gets or sets the reason of the build to which the retention policy applies. | 
| .gif) | BuildStatus | Gets or sets the status of the build to which the retention policy applies. | 
| .gif) | DeleteOptions | Gets or sets the parts of the build to delete. | 
| .gif) | NumberToKeep | Gets or sets the number of builds to keep. | 
Top