AzureML.ManagementSDK.SubmitExperiment C# (CSharp) Method

SubmitExperiment() private method

private SubmitExperiment ( WorkspaceSetting setting, Experiment exp, string rawJson, string newName, bool createNewCopy, bool run ) : void
setting AzureML.Contract.WorkspaceSetting
exp AzureML.Contract.Experiment
rawJson string
newName string
createNewCopy bool
run bool
return void
        private void SubmitExperiment(WorkspaceSetting setting, Experiment exp, string rawJson, string newName, bool createNewCopy, bool run)
        {
            ValidateWorkspaceSetting(setting);  
            Util.AuthorizationToken = setting.AuthorizationToken;
            string body = CreateSubmitExperimentRequest(exp, rawJson, run, newName, createNewCopy);
            string queryUrl = StudioApi + string.Format("workspaces/{0}/experiments/{1}", setting.WorkspaceId, createNewCopy ? string.Empty : exp.ExperimentId);
            HttpResult hr = Util.HttpPost(queryUrl, body).Result;
            if (!hr.IsSuccess)
                throw new AmlRestApiException(hr);
        }
        public void RemoveExperimentById(WorkspaceSetting setting, string ExperimentId)