TextCategory Struct
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.
The harm category supported in Text content analysis.
public readonly struct TextCategory : IEquatable<Azure.AI.ContentSafety.TextCategory>
type TextCategory = struct
Public Structure TextCategory
Implements IEquatable(Of TextCategory)
- Inheritance
-
TextCategory
- Implements
Constructors
| Name | Description |
|---|---|
| TextCategory(String) |
Initializes a new instance of TextCategory. |
Properties
| Name | Description |
|---|---|
| Hate |
The harm category for Text - Hate. |
| SelfHarm |
The harm category for Text - SelfHarm. |
| Sexual |
The harm category for Text - Sexual. |
| Violence |
The harm category for Text - Violence. |
Methods
| Name | Description |
|---|---|
| Equals(TextCategory) |
Indicates whether the current object is equal to another object of the same type. |
| ToString() |
Returns the fully qualified type name of this instance. |
Operators
| Name | Description |
|---|---|
| Equality(TextCategory, TextCategory) |
Determines if two TextCategory values are the same. |
| Implicit(String to Nullable<TextCategory>) | |
| Implicit(String to TextCategory) |
Converts a string to a TextCategory. |
| Inequality(TextCategory, TextCategory) |
Determines if two TextCategory values are not the same. |