GetCheckinPoliciesForServerPaths Method
The document is archived and information here might be outdated

VersionControlServer.GetCheckinPoliciesForServerPaths Method

Gets the list of check in policies for the specified team projects.

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

public PolicyEnvelope[] GetCheckinPoliciesForServerPaths(
	string[] serverItems


Type: System.String[]

The server items required for which you want to get the policies. Note that check in policies are set at the level of the team project; if you pass in $/CmdLine/Beta/parser.cs you are retrieving check in policies for $/CmdLine.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.PolicyEnvelope[]
Each returned PolicyEnvelope object indicates whether this policy is enabled for this team project and gives you the assembly and load information for the policy itself.

© 2016 Microsoft