Share via


VersionControlPath.GetFullPath Method (String, Boolean)

Canonicalizes the specified items specification and return the string. This will do things such as remove ..'s, convert \ to /, and so on. It throws an InvalidPathException if the item is the empty string, contains invalid characters including an embedded dollar sign (wildcard characters are not considered invalid in this check), or is too long.

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

Syntax

'Declaration
Public Shared Function GetFullPath ( _
    item As String, _
    checkReservedCharacters As Boolean _
) As String
public static string GetFullPath(
    string item,
    bool checkReservedCharacters
)
public:
static String^ GetFullPath(
    String^ item, 
    bool checkReservedCharacters
)
static member GetFullPath : 
        item:string * 
        checkReservedCharacters:bool -> string
public static function GetFullPath(
    item : String, 
    checkReservedCharacters : boolean
) : String

Parameters

  • checkReservedCharacters
    Type: System.Boolean

    The Boolean flag whether to validate version control reserved characters or not.

Return Value

Type: System.String
Canonical string form of the item.

.NET Framework Security

See Also

Reference

VersionControlPath Class

GetFullPath Overload

Microsoft.TeamFoundation.VersionControl.Common Namespace