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 _
)
public AspNetDevelopmentServerAttribute(
string name,
string pathToWebApp
)
public:
AspNetDevelopmentServerAttribute(
String^ name,
String^ pathToWebApp
)
new :
name:string *
pathToWebApp:string -> AspNetDevelopmentServerAttribute
public function AspNetDevelopmentServerAttribute(
name : String,
pathToWebApp : String
)
Parameters
name
Type: StringThe name of the ASP.NET Development Server. This name must be unique for all AspNetDevelopmentServerAttribute specified on a single test.
pathToWebApp
Type: StringThe path to the Web application. This can also include environmental variables.
.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