AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the ListDatasetLabels operation.

This operation applies only to Amazon Rekognition Custom Labels.

Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images.

Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images in the Amazon Rekognition Custom Labels Developer Guide.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Rekognition.AmazonRekognitionRequest
      Amazon.Rekognition.Model.ListDatasetLabelsRequest

Namespace: Amazon.Rekognition.Model
Assembly: AWSSDK.Rekognition.dll
Version: 3.x.y.z

Syntax

C#
public class ListDatasetLabelsRequest : AmazonRekognitionRequest
         IAmazonWebServiceRequest

The ListDatasetLabelsRequest type exposes the following members

Constructors

NameDescription
Public Method ListDatasetLabelsRequest()

Properties

NameTypeDescription
Public Property DatasetArn System.String

Gets and sets the property DatasetArn.

The Amazon Resource Name (ARN) of the dataset that you want to use.

Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.

Public Property NextToken System.String

Gets and sets the property NextToken.

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

Examples

Lists the JSON line entries in an Amazon Rekognition Custom Labels dataset.

To list the entries in an Amazon Rekognition Custom Labels dataset


var client = new AmazonRekognitionClient();
var response = client.ListDatasetEntries(new ListDatasetEntriesRequest 
{
    ContainsLabels = new List<string> {
        "camellia"
    },
    DatasetArn = "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106",
    HasErrors = true,
    Labeled = true,
    MaxResults = 100,
    NextToken = "",
    SourceRefContains = "camellia4.jpg"
});

List<string> datasetEntries = response.DatasetEntries;
string nextToken = response.NextToken;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5