Click or drag to resize

IPAddress Class

Provides an Internet Protocol (IP) address.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharpIPAddress

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
[SerializableAttribute]
public class IPAddress

The IPAddress type exposes the following members.

Constructors
 NameDescription
Public methodIPAddress(Byte) Initializes a new instance of the IPAddress class with the address specified as a Byte array
Public methodIPAddress(Int64) Initializes a new instance of the IPAddress class with the address specified as an System.Int64
Public methodIPAddress(Byte, Int64) Initializes a new instance of the IPAddress class with the address specified as a Byte array and the specified scope identifier.
Top
Properties
 NameDescription
Public propertyAddressFamily Gets the address family of the IP address. Returns SimplSharp.AddressFamily.InterNetwork for IPv4 or SimplSharp.AddressFamily.InterNetworkV6 for IPv6.
Public propertyStatic memberAny Provides an IP address that indicates that the server must listen for client activity on all network interfaces. This field is read-only.
Public propertyStatic memberBroadcast Provides the IP broadcast address. This field is read-only.
Public propertyStatic memberIPv6Any Provides an IP address that indicates that the server must listen for client activity on all network interfaces. This field is read-only.
Public propertyStatic memberIPv6Loopback Provides the IP loopback address. This property is read-only.
Public propertyStatic memberIPv6None Provides an IP address that indicates that no network interface should be used. This property is read-only.
Public propertyStatic memberLoopback Provides the IP loopback address. This field is read-only.
Public propertyStatic memberNone Provides an IP address that indicates that no network interface should be used. This field is read-only.
Public propertyScopeId Gets or sets the IPv6 address scope identifier. Returns A long integer that specifies the scope of the address.
Top
Methods
 NameDescription
Public methodEquals Compares two IP addresses.
(Overrides ObjectEquals(Object))
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetAddressBytes Provides a copy of the SimplSharp.IPAddress as an array of bytes.
Public methodGetHashCode Returns a hash value for an IP address.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberHostToNetworkOrder(Int16) Converts a short value from host byte order to network byte order.
Public methodStatic memberHostToNetworkOrder(Int32) Converts an integer value from host byte order to network byte order.
Public methodStatic memberHostToNetworkOrder(Int64) Converts a long value from host byte order to network byte order.
Public methodStatic memberIsLoopback Indicates whether the specified IP address is the loopback address.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberNetworkToHostOrder(Int16) Converts a short value from network byte order to host byte order.
Public methodStatic memberNetworkToHostOrder(Int32) Converts an integer value from network byte order to host byte order.
Public methodStatic memberNetworkToHostOrder(Int64) Converts a long value from network byte order to host byte order.
Public methodStatic memberParse Converts an IP address string to an IPAddress instance.
Public methodToString Converts an Internet address to its standard notation.
(Overrides ObjectToString)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also