Partager via


AspNetDevelopmentServerHostAttribute, constructeur (String, String)

Initialise une nouvelle instance de la classe AspNetDevelopmentServerHostAttribute avec le chemin d'accès complet et la racine de l'application Web.

Espace de noms :  Microsoft.VisualStudio.TestTools.UnitTesting.Web
Assembly :  Microsoft.VisualStudio.QualityTools.UnitTestFramework (dans Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntaxe

'Déclaration
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
)

Paramètres

  • pathToWebApp
    Type : System.String
    Chemin d'accès complet de l'application Web.Le chemin d'accès peut inclure des variables d'environnement telles que %TEMPDIR%\website1.

Sécurité .NET Framework

Voir aussi

Référence

AspNetDevelopmentServerHostAttribute Classe

AspNetDevelopmentServerHostAttribute, surcharge

Microsoft.VisualStudio.TestTools.UnitTesting.Web, espace de noms

Autres ressources

ASP.NET Unit Tests