VersionControlServer.SetFileTypes Method

Team Foundation Server maintains a list of file types in order to control the multiple checkout option. Files that can be merged (text files) could allow multiple checkouts; files that cannot be merged (most types of binary files) generally do not allow for multiple checkouts. The Team Foundation Server administrator defines a list of known file types. When a new file is added to Team Foundation Server, its file name extension is used to identify its file type, and controls multiple checkouts. This method sends the list of file types to the server that is running Team Foundation Server. The new list of file types replaces the old list. Therefore, to add a new file type, you should first call GetFileTypes to get the current list. Then you can add your new type to the list and pass the complete list to SetFileTypes.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
Public Sub SetFileTypes ( _
    fileTypes As FileType() _
)
'Usage
Dim instance As VersionControlServer 
Dim fileTypes As FileType()

instance.SetFileTypes(fileTypes)
public void SetFileTypes(
    FileType[] fileTypes
)
public:
void SetFileTypes(
    array<FileType^>^ fileTypes
)
public function SetFileTypes(
    fileTypes : FileType[]
)

Parameters

  • fileTypes
    Type: array<Microsoft.TeamFoundation.VersionControl.Client.FileType[]

    An array of FileType objects, each of which contains a name (a friendly name defined by the user, such as pictures), a list of extensions (such as BMP and JPG), and a Boolean variable that indicates whether this kind of file enables multiple checkouts.

.NET Framework Security

See Also

Reference

VersionControlServer Class

VersionControlServer Members

Microsoft.TeamFoundation.VersionControl.Client Namespace