AspNetDevelopmentServerHostAttribute Constructor (String)

Initializes a new instance of the AspNetDevelopmentServerHostAttribute class with the full path name.

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

Syntax

'Declaration
Public Sub New ( _
    pathToWebApp As String _
)
public AspNetDevelopmentServerHostAttribute(
    string pathToWebApp
)
public:
AspNetDevelopmentServerHostAttribute(
    String^ pathToWebApp
)
new : 
        pathToWebApp:string -> AspNetDevelopmentServerHostAttribute
public function AspNetDevelopmentServerHostAttribute(
    pathToWebApp : String
)

Parameters

  • pathToWebApp
    Type: String

    The full path of the Web application. The path can include environment variables like %TEMPDIR%\website1.

.NET Framework Security

See Also

Reference

AspNetDevelopmentServerHostAttribute Class

AspNetDevelopmentServerHostAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting.Web Namespace

Other Resources

ASP.NET Unit Tests