PackageUtilities.MakeRelativeIfRooted(String, Url) Método

Definição

Retorna um caminho relativo se o caminho de arquivo especificado for absoluto e se estiver na mesma pasta que a URL ou uma pasta filho da URL.

public:
 static System::String ^ MakeRelativeIfRooted(System::String ^ fileName, Microsoft::VisualStudio::Shell::Url ^ url);
 static std::wstring MakeRelativeIfRooted(std::wstring const & fileName, Microsoft::VisualStudio::Shell::Url const & url);
public static string MakeRelativeIfRooted (string fileName, Microsoft.VisualStudio.Shell.Url url);
static member MakeRelativeIfRooted : string * Microsoft.VisualStudio.Shell.Url -> string
Public Function MakeRelativeIfRooted (fileName As String, url As Url) As String

Parâmetros

fileName
String

O caminho a ser convertido.

url
Url

A URL de base.

Retornos

String

O caminho relativo do arquivo.

Comentários

Se fileName já for relativo, ou se for absoluto e não se sobrepor url , esse método retornará fileName . Caso contrário, ele retorna a parte do caminho que não se sobrepõe url .

Aplica-se a