Delen via


BuildContainerPath.IsValidPath Method

Validates a server drop path and canonicalizes it if it is valid. The output value error is set when the path is not valid.

Namespace:  Microsoft.TeamFoundation.Build.Common
Assembly:  Microsoft.TeamFoundation.Build.Common (in Microsoft.TeamFoundation.Build.Common.dll)

Syntax

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

Parameters

  • error
    Type: System.String%

    The error, if any, which caused the method to fail

Return Value

Type: System.Boolean
True if the path is valid, false otherwise

.NET Framework Security

See Also

Reference

BuildContainerPath Class

Microsoft.TeamFoundation.Build.Common Namespace