Share via


DeploymentItemAttribute Constructor (String)

Initializes a new instance of the DeploymentItemAttribute class. An object that is created with this constructor will be initialized with a path to a deployment item or directory.

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

Syntax

'Declaration
Public Sub New ( _
    path As String _
)
public DeploymentItemAttribute(
    string path
)
public:
DeploymentItemAttribute(
    String^ path
)
new : 
        path:string -> DeploymentItemAttribute
public function DeploymentItemAttribute(
    path : String
)

Parameters

  • path
    Type: System.String
    The relative or absolute path to the deployment item or directory to deploy. All items or directories will be deployed to the directory where the deployed test assemblies reside.

Remarks

The relative path setting is found in the RelativePathRoot setting found in the .testsettings file.

.NET Framework Security

See Also

Reference

DeploymentItemAttribute Class

DeploymentItemAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Test Deployment