AmsAddress.RegularExpressionPattern Field

The regular expression pattern for AmsAddress

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public const string RegularExpressionPattern = "^(?<AmsNetId>((?<First>\d{1,3})\.(?<Second>\d{1,3})\.(?<Third>\d{1,3})\.(?<Fourth>\d{1,3})\.(?<Fifth>\d{1,3})\.(?<Sixth>\d{1,3})) | Local | Empty | LocalHost)(:(?<AdsPort>\d+))?$"

VB

Public Const RegularExpressionPattern As String = "^(?<AmsNetId>((?<First>\d{1,3})\.(?<Second>\d{1,3})\.(?<Third>\d{1,3})\.(?<Fourth>\d{1,3})\.(?<Fifth>\d{1,3})\.(?<Sixth>\d{1,3})) | Local | Empty | LocalHost)(:(?<AdsPort>\d+))?$"

Field Value

Type: String

Reference

AmsAddress Class

TwinCAT.Ads Namespace