AmsNetId Class

AMS/ADS Net ID

Inheritance Hierarchy

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

Syntax

C#

[SerializableAttribute]
public class AmsNetId : IComparable<AmsNetId>, 
    IComparable

VB

<SerializableAttribute>
Public Class AmsNetId
    Implements IComparable(Of AmsNetId), IComparable

The AmsNetId type exposes the following members.

Constructors

 

Name

Description

AmsNetId(.Byte.)

Constructor

AmsNetId(String)

Constructor

AmsNetId(AmsNetId)

Copy Constructor

Properties

 

Name

Description

Empty

Creates an empty NetId ("0.0.0.0.0.0")

IsLocal

Is the Address Local?

Local

Gets the Local Net ID (System service must be running)

LocalHost

Creates the local NetId ("127.0.0.1.1.1")

Methods

 

Name

Description

Clone

Clones the NetId

CompareTo(Object)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

CompareTo(AmsNetId)

Compares the current object with another object of the same type.

Equals

Equals (Overrides Object.Equals(Object).)

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

FromBinHexString

Creates the AmsNetId from bin hex string.

GetHashCode

Gets the HashCode of the Address (Overrides Object.GetHashCode..)

GetType

Gets the Type of the current instance. (Inherited from Object.)

IsEqual

Determines whether the specified AmsNetIds are equal.

IsSameTarget

Determines whether the AmsNetIds refer to the same target.

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

NetIdsEqual(.Byte.)

Compares the netIds

NetIdsEqual(.Byte., .Byte.)

Compares the NetIds

Parse

Converts the string representation of the address to AmsNetId.

ToBinHex.

Converts the AmsNetId to a BinHex string.

ToBinHex(AmsNetId)

Converts the specified AmsNetId to a BinHex string.

ToBytes

Converts the NetId object to byte array

ToString.

Converts the netId to string (Overrides Object.ToString..)

ToString(String, IFormatProvider)

Returns a String that represents this instance.

TryParse

Converts the string representation of the address to AmsNetId.

Operators

 

Name

Description

Equality

Operator==

Inequality

Implements the != operator.

Reference

TwinCAT.Ads Namespace