Share via


DeploymentItem Class

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

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.Common.DeploymentItem

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class DeploymentItem _
    Implements IPersistable, IXmlTestStore
[SerializableAttribute]
public sealed class DeploymentItem : IPersistable, 
    IXmlTestStore
[SerializableAttribute]
public ref class DeploymentItem sealed : IPersistable, 
    IXmlTestStore
[<Sealed>]
[<SerializableAttribute>]
type DeploymentItem =  
    class 
        interface IPersistable 
        interface IXmlTestStore 
    end
public final class DeploymentItem implements IPersistable, IXmlTestStore

The DeploymentItem type exposes the following members.

Constructors

  Name Description
Public method DeploymentItem(String) Initializes an instance of the DeploymentItem class by using the provided path.
Public method DeploymentItem(String, String) Initializes an instance of the DeploymentItem class by using the provided path and the output directory.

Top

Properties

  Name Description
Public property OutputDirectory Gets the relative path of the output directory.
Public property Path Gets the path of the deployment item.

Top

Methods

  Name Description
Public methodStatic member CheckDeploymentItem Verifies whether the path and outputDirectory parameters indicate locations that exist.
Public method Equals Determines whether the current DeploymentItem instance is equal to the specified instance. (Overrides Object.Equals(Object).)
Public method GetHashCode Serves as a hash function for an instance of the DeploymentItem object. (Overrides Object.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Load Loads the current object from the provided XML element by using the provided parameters.
Public method PrepareToPersist Does nothing in this release.
Public method RecoverFromPersistence Verifies that the current instance, as retrieved from the XML store, is valid.
Public method Save Saves the current object to the provided XML element by using the provided parameters.
Public method ToString Returns the property values as a string. (Overrides Object.ToString.)

Top

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

Reference

Microsoft.VisualStudio.TestTools.Common Namespace