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 DetectSentiment operation. Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Comprehend.AmazonComprehendRequest
      Amazon.Comprehend.Model.DetectSentimentRequest

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

Syntax

C#
public class DetectSentimentRequest : AmazonComprehendRequest
         IAmazonWebServiceRequest

The DetectSentimentRequest type exposes the following members

Constructors

NameDescription
Public Method DetectSentimentRequest()

Properties

NameTypeDescription
Public Property LanguageCode Amazon.Comprehend.LanguageCode

Gets and sets the property LanguageCode.

The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents must be in the same language.

Public Property Text System.String

Gets and sets the property Text.

A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms