共用方式為


BuildContainerPath.MakeRelative Method

Checks to see if fullPath starts with the parentPath. If so,the parent path is removed from fullPath and the remaining part of fullPath is returned.

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

Syntax

'Declaration
Public Shared Function MakeRelative ( _
    parentPath As String, _
    fullPath As String _
) As String
public static string MakeRelative(
    string parentPath,
    string fullPath
)
public:
static String^ MakeRelative(
    String^ parentPath, 
    String^ fullPath
)
static member MakeRelative : 
        parentPath:string * 
        fullPath:string -> string
public static function MakeRelative(
    parentPath : String, 
    fullPath : String
) : String

Parameters

Return Value

Type: System.String
Returns String.

.NET Framework Security

See Also

Reference

BuildContainerPath Class

Microsoft.TeamFoundation.Build.Common Namespace