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 _
)
'Usage
Dim name As String 
Dim pathToWebApp As String 

Dim instance As New AspNetDevelopmentServerAttribute(name, pathToWebApp)
public AspNetDevelopmentServerAttribute(
    string name,
    string pathToWebApp
)
public:
AspNetDevelopmentServerAttribute(
    String^ name, 
    String^ pathToWebApp
)
public function AspNetDevelopmentServerAttribute(
    name : String, 
    pathToWebApp : String
)

Parameters

  • pathToWebApp
    Type: System.String

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

.NET Framework Security

See Also

Reference

AspNetDevelopmentServerAttribute Class

AspNetDevelopmentServerAttribute Members

AspNetDevelopmentServerAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting.Web Namespace

Other Resources

ASP.NET Unit Tests