IPGlobalProperties.DomainName 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
로컬 컴퓨터가 등록된 도메인을 가져옵니다.
public:
abstract property System::String ^ DomainName { System::String ^ get(); };
public abstract string DomainName { get; }
member this.DomainName : string
Public MustOverride ReadOnly Property DomainName As String
속성 값
String 컴퓨터의 도메인 이름을 포함하는 인스턴스입니다. 컴퓨터가 도메인 Empty에 속하지 않으면 .
예외
Win32 함수 호출이 실패했습니다.
예제
다음 코드 예제에서는 로컬 컴퓨터에 대 한 네트워크 정보를 표시 합니다.
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
Console.WriteLine("Computer name: {0}", properties.HostName);
Console.WriteLine("Domain name: {0}", properties.DomainName);
Console.WriteLine("Node type: {0:f}", properties.NodeType);
Console.WriteLine("DHCP scope: {0}", properties.DhcpScopeName);
Console.WriteLine("WINS proxy? {0}", properties.IsWinsProxy);