ContentSafetyModelFactory.ImageAnalyzeSeverityResult 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.
Initializes a new instance of ImageAnalyzeSeverityResult.
public static Azure.AI.ContentSafety.ImageAnalyzeSeverityResult ImageAnalyzeSeverityResult (Azure.AI.ContentSafety.ImageCategory category = default, int severity = 0);
static member ImageAnalyzeSeverityResult : Azure.AI.ContentSafety.ImageCategory * int -> Azure.AI.ContentSafety.ImageAnalyzeSeverityResult
Public Shared Function ImageAnalyzeSeverityResult (Optional category As ImageCategory = Nothing, Optional severity As Integer = 0) As ImageAnalyzeSeverityResult
Parameters
- category
- ImageCategory
The image category.
- severity
- Int32
The higher the severity of input content, the larger this value, currently its value could be: 0,2,4,6.
Returns
A new ImageAnalyzeSeverityResult instance for mocking.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET