Share via


DeploymentItem Constructors

Definition

Overloads

DeploymentItem(String)

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

DeploymentItem(String, String)

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

DeploymentItem(String)

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

public:
 DeploymentItem(System::String ^ path);
public DeploymentItem (string path);
new Microsoft.VisualStudio.TestTools.Common.DeploymentItem : string -> Microsoft.VisualStudio.TestTools.Common.DeploymentItem
Public Sub New (path As String)

Parameters

path
String

A string that contains the path of the item.

Applies to

DeploymentItem(String, String)

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

public:
 DeploymentItem(System::String ^ path, System::String ^ relativeOutputDirectory);
public DeploymentItem (string path, string relativeOutputDirectory);
new Microsoft.VisualStudio.TestTools.Common.DeploymentItem : string * string -> Microsoft.VisualStudio.TestTools.Common.DeploymentItem
Public Sub New (path As String, relativeOutputDirectory As String)

Parameters

path
String

A string that contains the location of the item.

relativeOutputDirectory
String

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

Exceptions

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

Applies to