IPAddress.None 필드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
네트워크 인터페이스를 사용하지 않아야 함을 나타내는 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.BindNone 필드를 사용하여 가 Socket 클라이언트 작업을 수신 대기하지 않아야 함을 나타냅니다. None 필드는 점선 쿼드 표기법의 255.255.255.255와 같습니다.