This documentation is archived and is not being maintained.

DeploymentItem Constructor (String, String)

Initializes an instance of the DeploymentItem class by using the provided path and the output directory.

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

public DeploymentItem(
	string path,
	string relativeOutputDirectory
)

Parameters

path
Type: String

A string that contains the location of the item.

relativeOutputDirectory
Type: String

A string that contains the path for the test output, which is relative to the value of the path parameter.

ExceptionCondition
ArgumentException

The CheckDeploymentItem method, which is run before the object is instantiated, returned false.

Show: