ContentSafetyModelFactory.TextBlocklistMatchResult 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 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
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