Microsoft.Azure.Commands.StreamAnalytics.Models.StreamAnalyticsClient.CreateOrUpdatePSFunction C# (CSharp) Метод

CreateOrUpdatePSFunction() защищенный Метод

protected CreateOrUpdatePSFunction ( string resourceGroupName, string jobName, string functionName, string rawJsonContent ) : Function
resourceGroupName string
jobName string
functionName string
rawJsonContent string
Результат Function
        protected virtual Function CreateOrUpdatePSFunction(string resourceGroupName, string jobName, string functionName, string rawJsonContent)
        {
            if (string.IsNullOrWhiteSpace(rawJsonContent))
            {
                throw new ArgumentNullException("rawJsonContent");
            }

            // If create failed, the current behavior is to throw
            var response = StreamAnalyticsManagementClient.Functions.CreateOrUpdateWithRawJsonContent(
                    resourceGroupName,
                    jobName,
                    functionName,
                    new FunctionCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });

            return response.Function;
        }