AspNetDevelopmentServerAttribute Class Home
This page is specific to:.NET Framework Version:2.03.54.0
Team Test API
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.

Namespace: Microsoft.VisualStudio.TestTools.UnitTesting.Web
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in microsoft.visualstudio.qualitytools.unittestframework.dll)

Syntax

'Usage

Dim instance As AspNetDevelopmentServerAttribute


'Declaration

<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple:=True)> _
Public NotInheritable Class AspNetDevelopmentServerAttribute
	Inherits Attribute

/** @attribute AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=true) */ 
public final class AspNetDevelopmentServerAttribute extends Attribute

Remarks

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.

Inheritance Hierarchy

System.Object
   System.Attribute
    Microsoft.VisualStudio.TestTools.UnitTesting.Web.AspNetDevelopmentServerAttribute
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View