Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AspNetDevelopmentServer Class

 

Represents the settings for an instance of the ASP.NET Development Server. More than one instance may occur during a test.

Namespace:   Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

System::Object
  Microsoft.VisualStudio.TestTools.Common::AspNetDevelopmentServer

[SerializableAttribute]
public ref class AspNetDevelopmentServer : IXmlTestStore

NameDescription
System_CAPS_pubmethodAspNetDevelopmentServer(String^, String^, String^)

Initializes an instance of the AspNetDevelopmentServer class by using the provided name, Web application path, and root name of the Web application.

NameDescription
System_CAPS_pubpropertyName

Gets the name of this instance of ASP.NET Development Server.

System_CAPS_pubpropertyPathToWebApp

Gets the full path of the Web application that is being tested.

System_CAPS_pubpropertyWebAppRoot

Gets the name of the root for the Web application that is being tested.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Returns a value that indicates whether the current instance of AspNetDevelopmentServer object is equal to the provided instance of the AspNetDevelopmentServer object.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code of the ID of the AspNetDevelopmentServer instance.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodLoad(XmlElement^, XmlTestStoreParameters^)

Loads the class from the provided XML element.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSave(XmlElement^, XmlTestStoreParameters^)

Saves the ASP.NET Development Environment settings that this class represents.

System_CAPS_pubmethodToString()

(Inherited from Object.)

Use this class to develop tests that you intend to run in the ASP.NET host. This class differs from the following classes, although their names are similar:

  • AspNetDevelopmentServerAttribute specifies the settings that must be used for ASP.NET Development Server for the test. This class is used primarily for Web service unit tests.

  • AspNetDevelopmentServerHostAttribute specifies the settings to use when an ASP.NET Development Server is the host server for the test. This class is used for ASP.NET unit tests.

You can use the Save method to persist this object and the Load method to load it from storage.

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

Return to top
Show: