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 여는 네트워크 인터페이스를 사용 하지 않아야 함을 나타내는 속성입니다.

int 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 : {0}", address );
}
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.BindNone 필드를 사용하여 가 Socket 클라이언트 작업을 수신 대기해서는 안 함을 나타냅니다. None 필드는 점선 쿼드 표기법의 255.255.255.255와 같습니다.

적용 대상