TextModerationExtensions.ScreenTextAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Detect profanity and match against custom and shared blacklists
public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Screen> ScreenTextAsync (this Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration operations, string textContentType, System.IO.Stream textContent, string language = default, bool? autocorrect = False, bool? pII = False, string listId = default, bool? classify = False, System.Threading.CancellationToken cancellationToken = default);
static member ScreenTextAsync : Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration * string * System.IO.Stream * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Screen>
<Extension()>
Public Function ScreenTextAsync (operations As ITextModeration, textContentType As String, textContent As Stream, Optional language As String = Nothing, Optional autocorrect As Nullable(Of Boolean) = False, Optional pII As Nullable(Of Boolean) = False, Optional listId As String = Nothing, Optional classify As Nullable(Of Boolean) = False, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Screen)
Parameters
- operations
- ITextModeration
The operations group for this extension method.
- textContentType
- String
The content type. Possible values include: 'text/plain', 'text/html', 'text/xml', 'text/markdown'
- textContent
- Stream
Content to screen.
- language
- String
Language of the text.
- listId
- String
The list Id.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Remarks
Detects profanity in more than 100 languages and match against custom and shared blacklists.
Applies to
Azure SDK for .NET