AmsNetId.IsSameTarget Method

Determines whether the AmsNetIds refer to the same target.

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

Syntax

C#

public static bool IsSameTarget(
    AmsNetId netIDA,
    AmsNetId netIDB
)

VB

Public Shared Function IsSameTarget ( 
    netIDA As AmsNetId,
    netIDB As AmsNetId
) As Boolean

Parameters

netIDA

Type: TwinCAT.Ads.AmsNetId
NetID of target system A

netIDB

Type: TwinCAT.Ads.AmsNetId
NetID of target system B

Return Value

Type: Boolean
true if the target systems are the same, otherwise false.

Remarks

In comparison to the IsEqual(AmsNetId, AmsNetId) or Equals(Object) methods, this Method alse checks against the LocalHost ID, which means that LocalHost is the same target as Local

Reference

AmsNetId Class

TwinCAT.Ads Namespace

AmsNetId.IsEqual(AmsNetId, AmsNetId)