Delen via


VersionControlPath.IsValidFolderName Method

Checks if the specified folder name is valid. By folder name, we are referring to a single folder, not the full path.

Wild cards are not allowed here.

For example, a folder name in the full path below could be A, B, or C $/A/B/C/file.txt

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

Syntax

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

Parameters

  • error
    Type: System.String%

    The error string if the folder name is invalid; otherwise, null.

Return Value

Type: System.Boolean
True if the folder name is valid.

.NET Framework Security

See Also

Reference

VersionControlPath Class

Microsoft.TeamFoundation.VersionControl.Common Namespace