ContentSafetyModelFactory.TextBlocklistMatch(String, String, String) 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 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
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