A sample provides fast-access to the raw data of a dataset on an on-demand basis. The complete and updated reference with all available parameters is in our documentation website.
Наследование: Response
Пример #1
0
 /// <summary>
 /// Create a sample.
 /// </summary>
 /// <param name="dataset">A DataSet instance</param>
 /// <param name="name">The name you want to give to the new dataset sample. </param>
 /// <param name="arguments">The other parameters you want to specify (description, tags, etc.)</param>
 public Task<Sample> CreateSample(DataSet dataset, string name = null,
                                     Sample.Arguments arguments = null)
 {
     arguments = arguments ?? new Sample.Arguments();
     if (!string.IsNullOrWhiteSpace(name))
         arguments.Name = name;
     arguments.DataSet = dataset.Resource;
     return Create<Sample>(arguments);
 }
Пример #2
0
 /// <summary>
 /// Create a sample using supplied arguments.
 /// </summary>
 public Task<Sample> CreateSample(Sample.Arguments arguments)
 {
     return Create<Sample>(arguments);
 }