DeploymentItem Class

Definition

Represents a file, a directory, or another item to be deployed with a test run.

public ref class DeploymentItem sealed : Microsoft::VisualStudio::TestTools::Common::IPersistable, Microsoft::VisualStudio::TestTools::Common::Xml::IXmlTestStore
[System.Serializable]
public sealed class DeploymentItem : Microsoft.VisualStudio.TestTools.Common.IPersistable, Microsoft.VisualStudio.TestTools.Common.Xml.IXmlTestStore
[<System.Serializable>]
type DeploymentItem = class
    interface IPersistable
    interface IXmlTestStore
Public NotInheritable Class DeploymentItem
Implements IPersistable, IXmlTestStore
Inheritance
DeploymentItem
Attributes
Implements

Constructors

DeploymentItem(String)

Initializes an instance of the DeploymentItem class by using the provided path.

DeploymentItem(String, String)

Initializes an instance of the DeploymentItem class by using the provided path and the output directory.

Properties

OutputDirectory

Gets the relative path of the output directory.

Path

Gets the path of the deployment item.

Methods

CheckDeploymentItem(String, String, String)

Verifies whether the path and outputDirectory parameters indicate locations that exist.

Equals(Object)

Determines whether the current DeploymentItem instance is equal to the specified instance.

GetHashCode()

Serves as a hash function for an instance of the DeploymentItem object.

Load(XmlElement, XmlTestStoreParameters)

Loads the current object from the provided XML element by using the provided parameters.

PrepareToPersist()

Does nothing in this release.

RecoverFromPersistence()

Verifies that the current instance, as retrieved from the XML store, is valid.

Save(XmlElement, XmlTestStoreParameters)

Saves the current object to the provided XML element by using the provided parameters.

ToString()

Returns the property values as a string.

Applies to