Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Validates a build item 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, _
allowWildcards As Boolean, _
<OutAttribute> ByRef error As String _
) As Boolean
public static bool IsValidPath(
ref string path,
bool allowWildcards,
out string error
)
public:
static bool IsValidPath(
String^% path,
bool allowWildcards,
[OutAttribute] String^% error
)
static member IsValidPath :
path:string byref *
allowWildcards:bool *
error:string byref -> bool
public static function IsValidPath(
path : String,
allowWildcards : boolean,
error : String
) : boolean
Parameters
path
Type: System.String%The path that should be validated.
allowWildcards
Type: System.BooleanWhether or not wildcard characters should be allowed.
error
Type: System.String%The error, if any, that 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.