Share via


VersionControlPath.PrependRootIfNeeded Method (String)

Utility method to prepend the root ($/) to a folder - most useful for getting the folder of a team project if you only have his name.

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

Syntax

'Declaration
Public Shared Function PrependRootIfNeeded ( _
    folder As String _
) As String
public static string PrependRootIfNeeded(
    string folder
)
public:
static String^ PrependRootIfNeeded(
    String^ folder
)
static member PrependRootIfNeeded : 
        folder:string -> string
public static function PrependRootIfNeeded(
    folder : String
) : String

Parameters

  • folder
    Type: System.String

    Folder path that may start with $/ already.

Return Value

Type: System.String
Folder path starting with root.

.NET Framework Security

See Also

Reference

VersionControlPath Class

PrependRootIfNeeded Overload

Microsoft.TeamFoundation.VersionControl.Common Namespace