Share via


DeploymentItem.CheckDeploymentItem Method

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

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

Syntax

'Declaration
Public Shared Function CheckDeploymentItem ( _
    path As String, _
    outputDirectory As String, _
    <OutAttribute> ByRef errorMessage As String _
) As Boolean
public static bool CheckDeploymentItem(
    string path,
    string outputDirectory,
    out string errorMessage
)
public:
static bool CheckDeploymentItem(
    String^ path, 
    String^ outputDirectory, 
    [OutAttribute] String^% errorMessage
)
static member CheckDeploymentItem : 
        path:string * 
        outputDirectory:string * 
        errorMessage:string byref -> bool
public static function CheckDeploymentItem(
    path : String, 
    outputDirectory : String, 
    errorMessage : String
) : boolean

Parameters

  • path
    Type: String

    A string that contains the location of the item.

  • outputDirectory
    Type: String

    A string that contains the path of the test output. The value of this parameter is relative to the value of the path parameter.

  • errorMessage
    Type: String%

    An output string that contains an error message if the item does not exist.

Return Value

Type: Boolean
true if the parameters are valid; otherwise, false.

Remarks

Does not throw an exception if the item does not exist. The value of the errorMessage parameter indicates why the validation failed.

.NET Framework Security

See Also

Reference

DeploymentItem Class

Microsoft.VisualStudio.TestTools.Common Namespace