Share via


ContentSafetyModelFactory.TextBlocklistMatch(String, String, String) Method

Definition

Initializes a new instance of TextBlocklistMatch.

public static Azure.AI.ContentSafety.TextBlocklistMatch TextBlocklistMatch (string blocklistName = default, string blocklistItemId = default, string blocklistItemText = default);
static member TextBlocklistMatch : string * string * string -> Azure.AI.ContentSafety.TextBlocklistMatch
Public Shared Function TextBlocklistMatch (Optional blocklistName As String = Nothing, Optional blocklistItemId As String = Nothing, Optional blocklistItemText As String = Nothing) As TextBlocklistMatch

Parameters

blocklistName
String

The name of the matched blocklist.

blocklistItemId
String

The ID of the matched item.

blocklistItemText
String

The content of the matched item.

Returns

A new TextBlocklistMatch instance for mocking.

Exceptions

blocklistName, blocklistItemId or blocklistItemText is null.

Applies to