SenseNet.Portal.Virtualization.PortalContext.GetUrlByRepositoryPath C# (CSharp) Méthode

GetUrlByRepositoryPath() public static méthode

public static GetUrlByRepositoryPath ( string repositoryPath ) : string
repositoryPath string
Résultat string
        public static string GetUrlByRepositoryPath(string repositoryPath)
        {
            foreach (string key in _urlPaths.AllKeys)
            {
                if (string.Concat(repositoryPath, "/").StartsWith(string.Concat(_urlPaths[key], "/")))
                {
                    return key + repositoryPath.Substring(_urlPaths[key].Length);
                }
            }
            return null;
        }

Same methods

PortalContext::GetUrlByRepositoryPath ( string url, string repositoryPath ) : string