Share via


ContentSafetyModelFactory.TextBlocklistItem(String, String, String) Method

Definition

Initializes a new instance of TextBlocklistItem.

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

Parameters

blocklistItemId
String

The service will generate a BlocklistItemId, which will be a UUID.

description
String

BlocklistItem description.

text
String

BlocklistItem content.

Returns

A new TextBlocklistItem instance for mocking.

Applies to