ContentSafetyModelFactory.TextBlocklistMatchResult Method

Definition

Initializes a new instance of TextBlocklistMatchResult.

public static Azure.AI.ContentSafety.TextBlocklistMatchResult TextBlocklistMatchResult (string blocklistName = default, string blockItemId = default, string blockItemText = default, int offset = 0, int length = 0);
static member TextBlocklistMatchResult : string * string * string * int * int -> Azure.AI.ContentSafety.TextBlocklistMatchResult
Public Shared Function TextBlocklistMatchResult (Optional blocklistName As String = Nothing, Optional blockItemId As String = Nothing, Optional blockItemText As String = Nothing, Optional offset As Integer = 0, Optional length As Integer = 0) As TextBlocklistMatchResult

Parameters

blocklistName
String

The name of matched blocklist.

blockItemId
String

The id of matched item.

blockItemText
String

The content of matched item.

offset
Int32

The character offset of matched text in original input.

length
Int32

The length of matched text in original input.

Returns

A new TextBlocklistMatchResult instance for mocking.

Exceptions

blocklistName, blockItemId or blockItemText is null.

Applies to