Note: This API is now obsolete.
Namespace:  Microsoft.VisualStudio.TeamFoundation
Assembly:  Microsoft.VisualStudio.TeamFoundation (in Microsoft.VisualStudio.TeamFoundation.dll)
Syntax
'Declaration
<ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")> _
Public Sub New ( _
    tfs As TeamFoundationServer, _
    projectName As String, _
    projectUri As String _
)
[ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")]
public ProjectContext(
    TeamFoundationServer tfs,
    string projectName,
    string projectUri
)
[ObsoleteAttribute(L"The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")]
public:
ProjectContext(
    TeamFoundationServer^ tfs, 
    String^ projectName, 
    String^ projectUri
)
[<ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")>]
new : 
        tfs:TeamFoundationServer * 
        projectName:string * 
        projectUri:string -> ProjectContext
public function ProjectContext(
    tfs : TeamFoundationServer, 
    projectName : String, 
    projectUri : String
)
Parameters
- projectName
 Type: System.String
- projectUri
 Type: System.String
.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.