你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TextAnalyticsModelFactory.AnalyzeSentimentResult Method

Definition

Overloads

AnalyzeSentimentResult(String, TextAnalyticsError)

Source:
TextAnalyticsModelFactory.cs

Initializes a new instance of AnalyzeSentimentResult for mocking purposes.

public static Azure.AI.TextAnalytics.AnalyzeSentimentResult AnalyzeSentimentResult(string id, Azure.AI.TextAnalytics.TextAnalyticsError error);
static member AnalyzeSentimentResult : string * Azure.AI.TextAnalytics.TextAnalyticsError -> Azure.AI.TextAnalytics.AnalyzeSentimentResult
Public Shared Function AnalyzeSentimentResult (id As String, error As TextAnalyticsError) As AnalyzeSentimentResult

Parameters

id
String

Sets the Id property.

error
TextAnalyticsError

Sets the Error property.

Returns

A new instance of AnalyzeSentimentResult for mocking purposes.

Applies to

AnalyzeSentimentResult(String, TextDocumentStatistics, DocumentSentiment)

Source:
TextAnalyticsModelFactory.cs

Initializes a new instance of AnalyzeSentimentResult for mocking purposes.

public static Azure.AI.TextAnalytics.AnalyzeSentimentResult AnalyzeSentimentResult(string id, Azure.AI.TextAnalytics.TextDocumentStatistics statistics, Azure.AI.TextAnalytics.DocumentSentiment documentSentiment);
static member AnalyzeSentimentResult : string * Azure.AI.TextAnalytics.TextDocumentStatistics * Azure.AI.TextAnalytics.DocumentSentiment -> Azure.AI.TextAnalytics.AnalyzeSentimentResult
Public Shared Function AnalyzeSentimentResult (id As String, statistics As TextDocumentStatistics, documentSentiment As DocumentSentiment) As AnalyzeSentimentResult

Parameters

id
String

Sets the Id property.

statistics
TextDocumentStatistics

Sets the Statistics property.

documentSentiment
DocumentSentiment

Sets the DocumentSentiment property.

Returns

A new instance of AnalyzeSentimentResult for mocking purposes.

Applies to