SipTrunkRoute(String, String, String, IEnumerable<String>) Constructor
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 SipTrunkRoute.
public SipTrunkRoute (string name, string numberPattern, string description = default, System.Collections.Generic.IEnumerable<string> trunks = default);
new Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute : string * string * string * seq<string> -> Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute
Public Sub New (name As String, numberPattern As String, Optional description As String = Nothing, Optional trunks As IEnumerable(Of String) = Nothing)
Parameters
- name
- String
Name of the route.
- numberPattern
- String
Regex number pattern for routing calls. .NET regex format is supported. The regex should match only digits with an optional '+' prefix without spaces. I.e. "^+[1-9][0-9]{3,23}$".
- description
- String
- trunks
- IEnumerable<String>
Exceptions
name
or numberPattern
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