AspNetDevelopmentServerAttribute Constructor (String, String)

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

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 _
)
public AspNetDevelopmentServerAttribute(
    string name,
    string pathToWebApp
)
public:
AspNetDevelopmentServerAttribute(
    String^ name, 
    String^ pathToWebApp
)
new : 
        name:string * 
        pathToWebApp:string -> AspNetDevelopmentServerAttribute
public function AspNetDevelopmentServerAttribute(
    name : String, 
    pathToWebApp : String
)

Parameters

  • pathToWebApp
    Type: String

    The path to the Web application. This can also include environmental variables.

.NET Framework Security

See Also

Reference

AspNetDevelopmentServerAttribute Class

AspNetDevelopmentServerAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting.Web Namespace

Other Resources

ASP.NET Unit Tests