コード例 #1
0
 /// <summary>
 /// Create a new job object.
 /// </summary>
 /// <param name="jobID">Initial value of the JobID property.</param>
 /// <param name="submitter">Initial value of the Submitter property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="server">Initial value of the Server property.</param>
 /// <param name="progress">Initial value of the Progress property.</param>
 /// <param name="submitted">Initial value of the Submitted property.</param>
 /// <param name="bandwidth">Initial value of the Bandwidth property.</param>
 /// <param name="totalErrors">Initial value of the TotalErrors property.</param>
 public static job Createjob(global::System.String jobID, global::System.String submitter, global::System.String status, global::System.String server, global::System.Double progress, global::System.DateTime submitted, global::System.Int64 bandwidth, global::System.Int32 totalErrors)
 {
     job job = new job();
     job.JobID = jobID;
     job.Submitter = submitter;
     job.Status = status;
     job.Server = server;
     job.Progress = progress;
     job.Submitted = submitted;
     job.Bandwidth = bandwidth;
     job.TotalErrors = totalErrors;
     return job;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the jobs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTojobs(job job)
 {
     base.AddObject("jobs", job);
 }