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: StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DeploymentItemAttribute Overload
Microsoft.VisualStudio.TestTools.WebTesting Namespace