DeploymentItemAttribute Constructor (String)

Initializes a new instance of the DeploymentItemAttribute class. Use the path parameter to specify the path to a file or directory to deploy.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.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 .testrunconfig file.

.NET Framework Security

See Also

Reference

DeploymentItemAttribute Class

DeploymentItemAttribute Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

Test Deployment