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 | |
---|---|---|
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. |
Top
Properties
Name | Description | |
---|---|---|
OutputDirectory | Gets the relative path of the output directory. | |
Path | Gets the path of the deployment item. |
Top
Methods
Name | Description | |
---|---|---|
CheckDeploymentItem | Verifies whether the path and outputDirectory parameters indicate locations that exist. | |
Equals | Determines whether the current DeploymentItem instance is equal to the specified instance. (Overrides Object.Equals(Object).) | |
GetHashCode | Serves as a hash function for an instance of the DeploymentItem object. (Overrides Object.GetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Load | 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 | Saves the current object to the provided XML element by using the provided parameters. | |
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.