ContentModeratorClient Class
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.
You use the API to scan your content as it is generated. Content Moderator then processes your content and sends the results along with relevant information either back to your systems or to the built-in review tool. You can use this information to take decisions e.g. take it down, send to human judge, etc.
When using the API, images need to have a minimum of 128 pixels and a maximum file size of 4MB. Text can be at most 1024 characters long. If the content passed to the text API or the image API exceeds the size limits, the API will return an error code that informs about the issue.
public class ContentModeratorClient : Microsoft.Rest.ServiceClient<Microsoft.Azure.CognitiveServices.ContentModerator.ContentModeratorClient>, IDisposable, Microsoft.Azure.CognitiveServices.ContentModerator.IContentModeratorClient
type ContentModeratorClient = class
inherit ServiceClient<ContentModeratorClient>
interface IContentModeratorClient
interface IDisposable
Public Class ContentModeratorClient
Inherits ServiceClient(Of ContentModeratorClient)
Implements IContentModeratorClient, IDisposable
- Inheritance
- Implements
Constructors
ContentModeratorClient(DelegatingHandler[]) |
Initializes a new instance of the ContentModeratorClient class. |
ContentModeratorClient(HttpClient, Boolean) |
Initializes a new instance of the ContentModeratorClient class. |
ContentModeratorClient(HttpClientHandler, DelegatingHandler[]) |
Initializes a new instance of the ContentModeratorClient class. |
ContentModeratorClient(ServiceClientCredentials, DelegatingHandler[]) |
Initializes a new instance of the ContentModeratorClient class. |
ContentModeratorClient(ServiceClientCredentials, HttpClient, Boolean) |
Initializes a new instance of the ContentModeratorClient class. |
ContentModeratorClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[]) |
Initializes a new instance of the ContentModeratorClient class. |
Properties
Credentials |
Subscription credentials which uniquely identify client subscription. |
DeserializationSettings |
Gets or sets json deserialization settings. |
Endpoint |
Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). |
FirstMessageHandler | (Inherited from ServiceClient<T>) |
HttpClient | (Inherited from ServiceClient<T>) |
HttpClientHandler | (Inherited from ServiceClient<T>) |
HttpMessageHandlers | (Inherited from ServiceClient<T>) |
ImageModeration |
Gets the IImageModeration. |
ListManagementImage |
Gets the IListManagementImage. |
ListManagementImageLists |
Gets the IListManagementImageLists. |
ListManagementTerm |
Gets the IListManagementTerm. |
ListManagementTermLists |
Gets the IListManagementTermLists. |
Reviews |
Gets the IReviews. |
SerializationSettings |
Gets or sets json serialization settings. |
TextModeration |
Gets the ITextModeration. |
UserAgent | (Inherited from ServiceClient<T>) |
Methods
CreateHttpHandlerPipeline(HttpClientHandler, DelegatingHandler[]) | (Inherited from ServiceClient<T>) |
Dispose() | (Inherited from ServiceClient<T>) |
Dispose(Boolean) | (Inherited from ServiceClient<T>) |
InitializeHttpClient(HttpClient, HttpClientHandler, DelegatingHandler[]) | (Inherited from ServiceClient<T>) |
InitializeHttpClient(HttpClientHandler, DelegatingHandler[]) | (Inherited from ServiceClient<T>) |
SetRetryPolicy(RetryPolicy) | (Inherited from ServiceClient<T>) |
SetUserAgent(String) | (Inherited from ServiceClient<T>) |
SetUserAgent(String, String) | (Inherited from ServiceClient<T>) |
Applies to
Azure SDK for .NET