
AspNetDevelopmentServerAttribute Class
Specifies the settings that must be used for the ASP.NET Development Server for the test. This is primarily used for Web service unit tests.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
System.Attribute
Microsoft.VisualStudio.TestTools.UnitTesting.Web.AspNetDevelopmentServerAttribute
Name | Description | |
---|---|---|
![]() | AspNetDevelopmentServerAttribute(String, String) | Initializes a new instance of the AspNetDevelopmentServerAttribute class with the server name and the path to the Web application. |
![]() | AspNetDevelopmentServerAttribute(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. |
Name | Description | |
---|---|---|
![]() | Name | Gets the name of the ASP.NET Development Server. |
![]() | PathToWebApp | Gets the path to the Web application. |
![]() | TypeId | (Inherited from Attribute.) |
![]() | WebAppRoot | Gets the Web application root. |
Name | Description | |
---|---|---|
![]() | Equals(Object) | (Inherited from Attribute.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | Match(Object) | (Inherited from Attribute.) |
![]() | ToString() | (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
When you run a test with an AspNetDevelopmentServerAttribute, an ASP.NET Development Server instance is started. You can then use TryUrlRedirection to redirect a Web service object so it points to that server instead of what is defined in the Web reference. By pointing to the server, you can ensure that an ASP.NET Development Server site is started and at a known URL when you run a Web service test.
This attribute targets methods. Multiple instances of this attribute may be applied to a method.
For more information about how to use attributes, see Extending Metadata Using Attributes.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.