Microsoft.Azure.Commands.StreamAnalytics.Models.StreamAnalyticsClient.CheckFunctionExists C# (CSharp) 메소드

CheckFunctionExists() 개인적인 메소드

private CheckFunctionExists ( string resourceGroupName, string jobName, string functionName ) : bool
resourceGroupName string
jobName string
functionName string
리턴 bool
        private bool CheckFunctionExists(string resourceGroupName, string jobName, string functionName)
        {
            try
            {
                PSFunction function = GetFunction(resourceGroupName, jobName, functionName);
                return true;
            }
            catch (CloudException e)
            {
                //Get throws Exception message with NotFound Status
                if (e.Response.StatusCode == HttpStatusCode.NotFound)
                {
                    return false;
                }
                else
                {
                    throw;
                }
            }
        }
    }