AmsNetId Class

AMS/ADS Net ID

Inheritance Hierarchy

System.Object
  TwinCAT.Ads.AmsNetId
Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

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

The AmsNetId type exposes the following members.

Constructors

 

Name

Description

AmsNetId Class 1:

AmsNetId(AmsNetId)

Copy Constructor

AmsNetId Class 2:

AmsNetId(.Byte.)

Constructor

AmsNetId Class 3:

AmsNetId(ReadOnlySpan.Byte.)

Initializes a new instance of the AmsNetId class from Memory.

AmsNetId Class 4:

AmsNetId(String)

Constructor

Properties

 

Name

Description

AmsNetId Class 5:

AmsNetId Class 6:

Broadcast

Gets the broadcast address (255.255.255.255.255.255)

AmsNetId Class 7:

AmsNetId Class 8:

Empty

Creates an empty NetId ("0.0.0.0.0.0")

AmsNetId Class 9:

IsBroadcast

Gets a value indicating whether this AmsNetId is the broadcast address (255.255.255.255.255.255)

AmsNetId Class 10:

IsEmpty

Gets a value indicating whether this instance is empty / Uninitialized (AmsNetId: 0.0.0.0.0.0)

AmsNetId Class 11:

IsLocal

Determines, whether the AmsNetId is the Address of the local system (or the LocalHost address).

AmsNetId Class 12:

IsLoopback

Indicates, that this AmsNetId indicates a Loopback (ID: 127.0.0.1.1.1)

AmsNetId Class 13:

IsSubAddress

Gets a value indicating whether this AmsNetId indicates a SubNet.

AmsNetId Class 14:

Item

Gets or sets the Byte with the specified index.

AmsNetId Class 15:

AmsNetId Class 16:

Local

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

AmsNetId Class 17:

AmsNetId Class 18:

LocalHost

Creates the local NetId ("127.0.0.1.1.1")

Methods

 

Name

Description

AmsNetId Class 19:

AsSpan

Returns the AmsNetId as byte Span.

AmsNetId Class 20:

Clone

Clones the NetId

AmsNetId Class 21:

CompareTo(AmsNetId)

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

AmsNetId Class 22:

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.

AmsNetId Class 23:

Equals(Object)

Equals (Overrides Object.Equals(Object).)

AmsNetId Class 24:

AmsNetId Class 25:

Equals(AmsNetId, AmsNetId)

Determines whether the specified AmsNetIds are equal.

AmsNetId Class 26:

Finalize

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

AmsNetId Class 27:

AmsNetId Class 28:

FromBinHexString

Creates the AmsNetId from bin hex string.

AmsNetId Class 29:

GetHashCode

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

AmsNetId Class 30:

GetType

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

AmsNetId Class 31:

AmsNetId Class 32:

IsSameTarget(AmsNetId, AmsNetId)

Determines whether the AmsNetIds refer to the same target.

AmsNetId Class 33:

AmsNetId Class 34:

IsSameTarget(AmsNetId, AmsNetId, Boolean)

Determines whether the AmsNetIds refer to the same target.

AmsNetId Class 35:

MemberwiseClone

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

AmsNetId Class 36:

NetIdsEqual(.Byte.)

Compares the netIds

AmsNetId Class 37:

AmsNetId Class 38:

NetIdsEqual(.Byte., .Byte.)

Compares the NetIds

AmsNetId Class 39:

AmsNetId Class 40:

NetIdsEqual(.Byte., .Byte., Boolean)

Compares the NetIds for SubID equality.

AmsNetId Class 41:

AmsNetId Class 42:

Parse

Converts the string representation of the address to AmsNetId.

AmsNetId Class 43:

ToBinHex.

Converts the AmsNetId to a BinHex string.

AmsNetId Class 44:

AmsNetId Class 45:

ToBinHex(AmsNetId)

Converts the specified AmsNetId to a BinHex string.

AmsNetId Class 46:

ToBytes

Converts the NetId object to byte array

AmsNetId Class 47:

ToString.

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

AmsNetId Class 48:

ToString(String, IFormatProvider)

Returns a String that represents this instance.

AmsNetId Class 49:

AmsNetId Class 50:

TryGetLocalNetId

Gets the Local NetID

AmsNetId Class 51:

AmsNetId Class 52:

TryParse

Converts the string representation of the address to AmsNetId.

AmsNetId Class 53:

TryWriteBytes

Writes the AmsNetId to memory.

Operators

 

Name

Description

AmsNetId Class 54:

AmsNetId Class 55:

Equality

Operator==

AmsNetId Class 56:

AmsNetId Class 57:

Inequality

Implements the != operator.

Reference

TwinCAT.Ads Namespace