Delen via


WorkspaceSpec.IsLegalName Method

Checks to see whether the workspace name consists only of valid characters and is less than the maximum length and does not contain a workspace separator.

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

Syntax

'Declaration
Public Shared Function IsLegalName ( _
    workspaceName As String _
) As Boolean
public static bool IsLegalName(
    string workspaceName
)
public:
static bool IsLegalName(
    String^ workspaceName
)
static member IsLegalName : 
        workspaceName:string -> bool
public static function IsLegalName(
    workspaceName : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the workspace name is valid; false otherwise.

.NET Framework Security

See Also

Reference

WorkspaceSpec Class

Microsoft.TeamFoundation.VersionControl.Common Namespace