This interface represents a build definition.
Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
声明
Public Interface IBuildDefinition _
    Inherits IBuildGroupItem
public interface IBuildDefinition : IBuildGroupItem
public interface class IBuildDefinition : IBuildGroupItem
type IBuildDefinition =  
    interface
        interface IBuildGroupItem
    end
public interface IBuildDefinition extends IBuildGroupItem
The IBuildDefinition type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | BuildController | Gets or sets the build controller that builds this build definition. | 
| .gif) | BuildControllerUri | Gets the uniform resource identifier (URI) of the build controller that builds this build definition. | 
| .gif) | BuildServer | Gets the server or computer that is hosting the build definition. | 
| .gif) | ConfigurationFolderPath | Obsolete. Gets or sets the path of the version control folder that contains the build definition project files (TfsBuild.proj and TfsBuild.rsp). | 
| .gif) | ContinuousIntegrationQuietPeriod | Gets or sets the time (in minutes) of the quiet period that is associated with Batch type continuous integration builds. | 
| .gif) | ContinuousIntegrationType | Gets or sets the continuous integration type of the build definition. | 
| .gif) | DefaultBuildAgent | Obsolete. Gets or sets the default build agent to use for this build definition. | 
| .gif) | DefaultBuildAgentUri | Obsolete. Gets the URI of the default build agent. | 
| .gif) | DefaultDropLocation | Gets or sets the default drop location for builds generated by the build definition. | 
| .gif) | Description | Gets or sets the description for the build definition. | 
| .gif) | Enabled | Gets or sets the enabled status of the build definition. | 
| .gif) | FullPath | Gets the full path of this build group item. (Inherited from IBuildGroupItem.) | 
| .gif) | Id | Gets the ID of this build definition. | 
| .gif) | LastBuildUri | Gets the URI of the last build for the build definition, regardless of status. | 
| .gif) | LastGoodBuildLabel | Gets the name of the label for the last successful build for the build definition. | 
| .gif) | LastGoodBuildUri | Gets the URI for the last successful build for the build definition. | 
| .gif) | Name | Gets or sets the name of this build group item. (Inherited from IBuildGroupItem.) | 
| .gif) | Process | Gets or sets the build process template for this definition. | 
| .gif) | ProcessParameters | Gets an XML formatted string representing all the process parameters for this build. | 
| .gif) | RetentionPolicies | Obsolete. Gets a dictionary of the retention policies for the build definition. The dictionary is indexed by the build status. | 
| .gif) | RetentionPolicyList | Gets a list of retention policies for this build definition. | 
| .gif) | Schedules | Gets a list of schedules for the build definition. | 
| .gif) | TeamProject | Gets the team project that owns this build group item. (Inherited from IBuildGroupItem.) | 
| .gif) | Uri | Gets the uniform resource identifier (URI) of this build group item. (Inherited from IBuildGroupItem.) | 
| .gif) | Workspace | Gets the workspace template for the build definition. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | AddRetentionPolicy | Adds a retention policy to the list of retention policies of this build definition. | 
| .gif) | AddSchedule | Adds a schedule to the list of schedules for the build definition. The schedule has no effect if the ContinuousIntegrationType is not Schedule. Only one schedule is accepted in the list. | 
| .gif) | CreateBuildRequest | Creates a build request from the build definition that has values for IBuildAgent and drop location set to the default build agent and default drop location. | 
| .gif) | CreateManualBuild(String) | Creates a build detail record in the Team Foundation Server build database. Build information and other changes can be made to the returned IBuildDetail object. | 
| .gif) | CreateManualBuild(String, String) | Creates a build detail record in the Team Foundation Server build database. Build information and other changes can be made to the returned IBuildDetail object. | 
| .gif) | CreateManualBuild(String, String, BuildStatus, IBuildController, String) | Creates a build detail record in the Team Foundation Server build database. | 
| .gif) | CreateProjectFile | Obsolete. Creates an IProjectFile from the build definition with values for the obsolete properties set to values determined by the build definition. | 
| .gif) | CreateSpec | Creates a new build specification for the build definition. | 
| .gif) | Delete | Deletes the build definition and all its builds from the server. | 
| .gif) | QueryBuilds | Gets all the builds for this build definition. | 
| .gif) | Refresh | Refreshes this build group item by getting current property values from the build server. (Inherited from IBuildGroupItem.) | 
| .gif) | Save | Saves any changes that were made to the IBuildDefinition object to the server. | 
Top