Microsoft.WindowsAzure.Commands.Utilities.Common.CommonUtilities.TryGetServiceRootPath C# (CSharp) Method

TryGetServiceRootPath() public static method

Tries to get service path, if not return null.
public static TryGetServiceRootPath ( string currentPath ) : string
currentPath string The current path
return string
        public static string TryGetServiceRootPath(string currentPath)
        {
            try { return GetServiceRootPath(currentPath); }
            catch (Exception) { return null; }
        }
    }