|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in microsoft.visualstudio.qualitytools.unittestframework.dll)
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=true)] public sealed class AspNetDevelopmentServerAttribute : Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=true) */ public final class AspNetDevelopmentServerAttribute extends Attribute
When you run a test with an AspNetDevelopmentServerAttribute, an ASP.NET Development Server instance is started. You can then useto 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.