Finding check-in policies and check out settings

Hi,

Through my application I want to fetch (using object model APIs) the check-in policies and check-out setting of a team project.

I checked out classes like PolicyList, PolicyType from Microsoft.TeamFoundation.VersionControl.Client, but none of them give the list of exisiting check-in policies or check-out settings (ie. whether multiple check outs are allowed)

Manasi


Answer this question

Finding check-in policies and check out settings

  • Bill Reiss

    Thanks Michal :)

    Manasi

  • Sandeepp

    Hello,
    you need object of class TeamProject. It contains:

    • property ExclusiveCheckout
    • method GetCheckinPolicies()
    • method GetCheckinNoteFields()

    A few ways to get TeamProject is Workspace.GetTeamProjectForLocalPath or VersionControlServer.GetTeamProject or VersionControlServer.GetTeamProjectForServerPath



  • xavito

    Thats even better.
    Manasi

  • Inmon

    Additionally, you may want to use GetFileTypes method of VersionControlServer. That will return server-wide settings for file types (extensions), and you may check whether multiple check outs are allowed for specific extension.

    Regards, Eugene



  • Finding check-in policies and check out settings