VersionControlServer.GetFileTypes Method
The server that is running Team Foundation Server returns a list of all the file types registered. Team Foundation Server maintains a list of file types in order to control the multiple checkout option. Files that can be merged (text files) may allow multiple checkouts; files that cannot be merged (most types of binary files) generally do not. The Team Foundation Server administrator defines a list of known file types. When a new file is added to Team Foundation Server, its file extension is used to identify its file type, and thereby controls multiple checkouts.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function GetFileTypes As FileType()
'Usage
Dim instance As VersionControlServer
Dim returnValue As FileType()
returnValue = instance.GetFileTypes()
public FileType[] GetFileTypes()
public:
array<FileType^>^ GetFileTypes()
public function GetFileTypes() : FileType[]
Return Value
Type: array<Microsoft.TeamFoundation.VersionControl.Client.FileType[]
Returns all the file types known to the server. A FileType object 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 type of file allows multiple checkouts.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.