AmsNetId.TryParse Method

Converts the string representation of the address to AmsNetId.

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

Syntax

C#

public static bool TryParse(
    string str,
    out AmsNetId netId
)

VB

Public Shared Function TryParse ( 
    str As String,
    <OutAttribute> ByRef netId As AmsNetId
) As Boolean

Parameters

str

Type: System.String
The string to parse.

netId

Type: TwinCAT.Ads.AmsNetId.
The parsed AmsNetId.

Return Value

Type: Boolean
true if parsed, false otherwise.

Reference

AmsNetId Class

TwinCAT.Ads Namespace