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
path
Type: System.String%The path which should be validated
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.