共用方式為


IVMDHCPVirtualNetworkServer::DefaultGatewayAddress property

The DefaultGatewayAddress property specifies the TCP/IP address of the default gateway.

This property is read/write.

Syntax

HRESULT put_DefaultGatewayAddress(
  [in]  BSTR defaultGatewayAddress
);

HRESULT get_DefaultGatewayAddress(
  [out] BSTR *defaultGatewayAddress
);

VB
VMDHCPVirtualNetworkServer.DefaultGatewayAddress( _
  ByRef defaultGatewayAddress, _
  ByVal defaultGatewayAddress _
)

Property value

The TCP/IP address formatted as a string in dotted-decimal notation. For example, 10.237.0.1.

This property value is read/write. If an empty value is written then the current default gateway is deleted.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The defaultGatewayAddress parameter was NULL.
VM_E_INVALID_IP_ADDRESS
The defaultGatewayAddress parameter was not a valid dotted-decimal 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