This documentation is archived and is not being maintained.

IPAddress Constructor (Byte[], Int64)

.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Initializes a new instance of the IPAddress class with the specified address and scope.

[Visual Basic]
Public Sub New( _
   ByVal address() As Byte, _
   ByVal scopeid As Long _
public IPAddress(
   byte[] address,
 long scopeid
public: IPAddress(
   unsigned char address __gc[],
 __int64 scopeid
public function IPAddress(
   address : Byte[],
 scopeid : long


The byte array value of the IP address
The long value of the scope identifier.


Exception Type Condition
ArgumentNullException address is a null reference (Nothing in Visual Basic).


address length != 16 .

ArgumentOutOfRangeException scopeid < 0 or

scopeid > 0x00000000FFFFFFFF


The scopeid identifies a network interface in the case of a link-local address. The scope is only valid for link-local and site-local addresses.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IPAddress Class | IPAddress Members | System.Net Namespace | IPAddress Constructor Overload List