Expand Minimize
This topic has not yet been rated - Rate this topic

VersionControlServer.GetCheckinNoteDefinitionsForServerPaths Method

When a user checks in changes into the server that is running Team Foundation Server server, they can leave, in addition to a generic comment string, a series of named note fields. For instance, a user might type at the command prompt /notes:reviewer=Bob;testsite=Chicago when they check-in files. Team Foundation Server does not have hard-coded fields called reviewer or testsite but they are entered as named properties of this changeset. In general, the property names are not established by the user checking in files, but by company policy, so you can query later for all changesets where the testsite property was set to Chicago. This gives you the ability to extend the Team Foundation Server-provided fields associated with changesets. This method returns the field definitions for all the note fields in the specified Team Projects. A field definition shows the string (such as testsite in the above example), but also an item the definition is associated with, whether the field is required, and where the item should be displayed in the order you choose.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
public CheckinNoteFieldDefinition[] GetCheckinNoteDefinitionsForServerPaths(
	string[] serverItems
)

Parameters

serverItems
Type: System.String[]

The listed array of team projects (For example, $/CmdLine) for which you want to compare.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.CheckinNoteFieldDefinition[]
Returns a CheckinNoteFieldDefinition array that is a union of the fields of the server items.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.