Share via


ContentSafetyModelFactory.ImageAnalyzeSeverityResult Method

Definition

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