次の方法で共有


TcmContext コンストラクター (Uri, String, Int32)

指定したサーバー URI (Uniform Resource Identifier)、プロジェクト名、およびテストの実行の ID を使用して、TcmContext クラスの新しいインスタンスを初期化します。

名前空間:  Microsoft.VisualStudio.TestTools.Common
アセンブリ:  Microsoft.VisualStudio.QualityTools.Common (Microsoft.VisualStudio.QualityTools.Common.dll 内)

構文

'宣言
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
)

パラメーター

  • teamFoundationServerUri
    型 : System.Uri
    Team Foundation Server の URI。
  • teamProjectName
    型 : System.String
    チーム プロジェクトの名前です。
  • testRunId
    型 : System.Int32
    テスト実行の数値 ID。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

TcmContext クラス

TcmContext オーバーロード

Microsoft.VisualStudio.TestTools.Common 名前空間