Freigeben über


IVMDHCPVirtualNetworkServer::DNSServers property

The DNSServers property contains a comma-separated list of the TCP/IP address representing DNS servers. The list of DNS servers is returned to the DHCP client as part of the server's response.

This property is read/write.

Syntax

HRESULT put_DNSServers(
  [in]  BSTR dnsServers
);

HRESULT get_DNSServers(
  [out] BSTR *dnsServers
);

VB
VMDHCPVirtualNetworkServer.DNSServers( _
  ByRef dnsServers, _
  ByVal dnsServers _
)

Property value

Contains a comma-separated list of TCP/IP addresses formatted as a string in dotted-decimal notation. For example, 10.237.0.3,10.237.0.4.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The dnsServers parameter was NULL.
E_INVALIDARG
The dnsServers parameter was an empty string.
VM_E_INVALID_IP_ADDRESS
The dnsServers parameter contained an invalid IP address.
DISP_E_EXCEPTION
An unexpected error has occurred.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMDHCPVirtualNetworkServer