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 _
)
[C#]
public IPAddress(
   byte[] address,
 long scopeid
);
[C++]
public: IPAddress(
   unsigned char address __gc[],
 __int64 scopeid
);
[JScript]
public function IPAddress(
   address : Byte[],
 scopeid : long
);

Parameters

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

Exceptions

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

-or-

address length != 16 .

ArgumentOutOfRangeException scopeid < 0 or

scopeid > 0x00000000FFFFFFFF

Remarks

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.

Requirements

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

Show: