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
name
Type: System.StringThe folder name to validate.
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
- 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.