Udostępnij za pośrednictwem


ConversationsModelFactory.RegexKey(String, String) Method

Definition

Initializes a new instance of RegexKey.

public static Azure.AI.Language.Conversations.Models.RegexKey RegexKey (string key = default, string regexPattern = default);
static member RegexKey : string * string -> Azure.AI.Language.Conversations.Models.RegexKey
Public Shared Function RegexKey (Optional key As String = Nothing, Optional regexPattern As String = Nothing) As RegexKey

Parameters

key
String

The key of the regex pattern used in extracting the entity.

regexPattern
String

The .NET regex pattern used in extracting the entity. Please visit https://docs.microsoft.com/dotnet/standard/base-types/regular-expressions for more information about .NET regular expressions.

Returns

A new RegexKey instance for mocking.

Applies to