Share via


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)

Syntax

'Declaration
Public Sub New ( _
    path As String, _
    relativeOutputDirectory As String _
)
public DeploymentItem(
    string path,
    string relativeOutputDirectory
)
public:
DeploymentItem(
    String^ path, 
    String^ relativeOutputDirectory
)
new : 
        path:string * 
        relativeOutputDirectory:string -> DeploymentItem
public function DeploymentItem(
    path : String, 
    relativeOutputDirectory : String
)

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.

Exceptions

Exception Condition
ArgumentException

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

.NET Framework Security

See Also

Reference

DeploymentItem Class

DeploymentItem Overload

Microsoft.VisualStudio.TestTools.Common Namespace

CheckDeploymentItem