IPAddress.None 필드

정의

네트워크 인터페이스를 사용해서는 안 됨을 나타내는 IP 주소를 제공합니다. 이 필드는 읽기 전용입니다.

public: static initonly System::Net::IPAddress ^ None;
public static readonly System.Net.IPAddress None;
 staticval mutable None : System.Net.IPAddress
Public Shared ReadOnly None As IPAddress 

필드 값

예제

다음 예제에서는 사용 해야 하는 네트워크 인터페이스를 나타내는 속성을 사용 None 합니다.

public static void Main()
{
   // Gets the IP address indicating that no network interface should be used
   // and converts it to a string.
   string address = IPAddress.None.ToString();
   Console.WriteLine("IP address : " + address);
}
Public Shared Sub Main()

    ' Gets the IP address indicating that no network interface should be used
    ' and converts it to a string. 
    Dim address As String = IPAddress.None.ToString()
    Console.WriteLine(("IP address : " + address))
End Sub

설명

메서드는 Socket.Bind 필드를 사용하여 None 클라이언트 활동을 수신 대기해서는 안 함을 Socket 나타냅니다. None 필드는 점선 쿼드 표기법의 255.255.255.255에 해당합니다.

적용 대상