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
parentPath
Type: System.Stringparent build container path
fullPath
Type: System.Stringfull build container path
Return Value
Type: System.String
Returns String.
.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.