AspNetDevelopmentServerAttribute Constructor (String, String, String)
Initializes a new instance of the AspNetDevelopmentServerAttribute class with the server name, the path to the Web application, 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 ( _
name As String, _
pathToWebApp As String, _
webAppRoot As String _
)
public AspNetDevelopmentServerAttribute(
string name,
string pathToWebApp,
string webAppRoot
)
public:
AspNetDevelopmentServerAttribute(
String^ name,
String^ pathToWebApp,
String^ webAppRoot
)
new :
name:string *
pathToWebApp:string *
webAppRoot:string -> AspNetDevelopmentServerAttribute
public function AspNetDevelopmentServerAttribute(
name : String,
pathToWebApp : String,
webAppRoot : String
)
Parameters
name
Type: StringThe name of the server.
pathToWebApp
Type: StringThe path to the Web application. This can also include environment variables like %TEMPDIR%\website1.
webAppRoot
Type: StringThe Web application root.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
AspNetDevelopmentServerAttribute Class
AspNetDevelopmentServerAttribute Overload
Microsoft.VisualStudio.TestTools.UnitTesting.Web Namespace