Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
HINWEIS: Diese Eigenschaft ist mittlerweile veraltet.
Eine Internetprotokolladresse (IP-Adresse).
Namespace: System.Net
Assembly: System (in system.dll)
Syntax
'Declaration
<ObsoleteAttribute("This property has been deprecated. It is address family dependent. Please use IPAddress.Equals method to perform comparisons. https://go.microsoft.com/fwlink/?linkid=14202")> _
Public Property Address As Long
'Usage
Dim instance As IPAddress
Dim value As Long
value = instance.Address
instance.Address = value
[ObsoleteAttribute("This property has been deprecated. It is address family dependent. Please use IPAddress.Equals method to perform comparisons. https://go.microsoft.com/fwlink/?linkid=14202")]
public long Address { get; set; }
[ObsoleteAttribute(L"This property has been deprecated. It is address family dependent. Please use IPAddress.Equals method to perform comparisons. https://go.microsoft.com/fwlink/?linkid=14202")]
public:
property long long Address {
long long get ();
void set (long long value);
}
/** @property */
public long get_Address ()
/** @property */
public void set_Address (long value)
public function get Address () : long
public function set Address (value : long)
Eigenschaftenwert
Der Long-Wert der IP-Adresse.
Hinweise
Diese Eigenschaft ist obsolet. Verwendet GetAddressBytes.
Verwenden Sie die ToString-Methode zum Konvertieren von Address in das Punktformat (Dotted Quad-Notation).
Beispiel
Im folgenden Beispiel wird mithilfe des Address-Parameters die IP-Adresse der IPAddress-Instanz abgerufen.
Public Sub PrintAddress(IpAddressString As [String])
' Creates an instance of the IPAddress' for the specified IP string in dotted-quad notation.
Dim hostIPAddress As IPAddress = IPAddress.Parse(IpAddressString)
Console.WriteLine(ControlChars.Cr + "The IP address '" + IpAddressString + "' is {0}", hostIPAddress.ToString())
End Sub 'PrintAddressFamily
public void PrintAddress(String IpAddressString)
{
// Creates an instance of the IPAddress for the specified IP string in
// dotted-quad notation.
IPAddress hostIPAddress = IPAddress.Parse(IpAddressString);
Console.WriteLine("\nThe IP address '" + IpAddressString + "' is {0}", hostIPAddress.ToString());
}
void PrintAddress( String^ IpAddressString )
{
// Creates an instance of the IPAddress for the specified IP String* in
// dotted-quad notation.
IPAddress^ hostIPAddress = IPAddress::Parse( IpAddressString );
Console::WriteLine( "\nInteger value of IP address {0} is {1}", IpAddressString, hostIPAddress->Address );
}
public void PrintAddress(String ipAddressString)
{
// Creates an instance of the IPAddress for the specified IP string in
// dotted-quad notation.
IPAddress hostIPAddress = IPAddress.Parse(ipAddressString);
Console.WriteLine("\nThe IP address '"
+ ipAddressString + "' is {0}", hostIPAddress.ToString());
} //PrintAddress
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 1.0, 1.1
Veraltet (Compilerwarnung) in 2.0
.NET Compact Framework
Unterstützt in: 1.0
Veraltet (Compilerwarnung) in 2.0