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.

This is the response object from the ListCollections operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.Rekognition.Model.ListCollectionsResponse

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

Syntax

C#
public class ListCollectionsResponse : AmazonWebServiceResponse

The ListCollectionsResponse type exposes the following members

Constructors

NameDescription
Public Method ListCollectionsResponse()

Properties

NameTypeDescription
Public Property CollectionIds System.Collections.Generic.List<System.String>

Gets and sets the property CollectionIds.

An array of collection IDs.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property FaceModelVersions System.Collections.Generic.List<System.String>

Gets and sets the property FaceModelVersions.

Version numbers of the face detection models associated with the collections in the array CollectionIds. For example, the value of FaceModelVersions[2] is the version number for the face detection model used by the collection in CollectionId[2].

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property NextToken System.String

Gets and sets the property NextToken.

If the result is truncated, the response provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.

Examples

This operation returns a list of Rekognition collections.

To list the collections


var client = new AmazonRekognitionClient();
var response = client.ListCollections(new ListCollectionsRequest 
{
});

List<string> collectionIds = response.CollectionIds;

            

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