Share via


TcmContext Constructor (Uri, String, Int32)

Initializes a new instance of the TcmContext class by using the provided server uniform resource identifier (URI), project name, and test run ID.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
Public Sub New ( _
    teamFoundationServerUri As Uri, _
    teamProjectName As String, _
    testRunId As Integer _
)
public TcmContext(
    Uri teamFoundationServerUri,
    string teamProjectName,
    int testRunId
)
public:
TcmContext(
    Uri^ teamFoundationServerUri, 
    String^ teamProjectName, 
    int testRunId
)
new : 
        teamFoundationServerUri:Uri * 
        teamProjectName:string * 
        testRunId:int -> TcmContext
public function TcmContext(
    teamFoundationServerUri : Uri, 
    teamProjectName : String, 
    testRunId : int
)

Parameters

  • teamFoundationServerUri
    Type: Uri

    The URI for the Team Foundation Server.

  • teamProjectName
    Type: String

    The name of the team project.

  • testRunId
    Type: Int32

    The numeric ID for the test run.

.NET Framework Security

See Also

Reference

TcmContext Class

TcmContext Overload

Microsoft.VisualStudio.TestTools.Common Namespace