AspNetDevelopmentServerAttribute Constructor (String, String, String)

Initializes a new instance of the AspNetDevelopmentServerAttribute class with the server name, the path to the Web application, and the Web application root.

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

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    pathToWebApp As String, _
    webAppRoot As String _
)
public AspNetDevelopmentServerAttribute(
    string name,
    string pathToWebApp,
    string webAppRoot
)
public:
AspNetDevelopmentServerAttribute(
    String^ name, 
    String^ pathToWebApp, 
    String^ webAppRoot
)
new : 
        name:string * 
        pathToWebApp:string * 
        webAppRoot:string -> AspNetDevelopmentServerAttribute
public function AspNetDevelopmentServerAttribute(
    name : String, 
    pathToWebApp : String, 
    webAppRoot : String
)

Parameters

  • pathToWebApp
    Type: System.String
    The path to the Web application. This can also include environment variables like %TEMPDIR%\website1.

.NET Framework Security

See Also

Reference

AspNetDevelopmentServerAttribute Class

AspNetDevelopmentServerAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting.Web Namespace

Other Resources

ASP.NET Unit Tests