Bagikan melalui


AspNetDevelopmentServerHostAttribute Constructor (String, String)

Initializes a new instance of the AspNetDevelopmentServerHostAttribute class with the full path name 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 ( _
    pathToWebApp As String, _
    webAppRoot As String _
)
public AspNetDevelopmentServerHostAttribute(
    string pathToWebApp,
    string webAppRoot
)
public:
AspNetDevelopmentServerHostAttribute(
    String^ pathToWebApp, 
    String^ webAppRoot
)
new : 
        pathToWebApp:string * 
        webAppRoot:string -> AspNetDevelopmentServerHostAttribute
public function AspNetDevelopmentServerHostAttribute(
    pathToWebApp : String, 
    webAppRoot : String
)

Parameters

  • pathToWebApp
    Type: String

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

  • webAppRoot
    Type: String

    The Web application root.

.NET Framework Security

See Also

Reference

AspNetDevelopmentServerHostAttribute Class

AspNetDevelopmentServerHostAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting.Web Namespace

Other Resources

ASP.NET Unit Tests