次の方法で共有


Disable method of the MicrosoftNLB_Node class

Disables a range of ports on the node.

Syntax

uint32 Disable(
  [in] uint32 Port
);

Parameters

Port [in]

The range of ports to be disabled. To affect a range of ports, set Port to a port number (0 to 65,535). All ports in the port rule containing the specified port number will be affected. To affect all ports, set Port to 0xFFFFFFFF.

Return value

This method returns a uint32 set to one of the standard return values.

WLBS_OK (1000)

WLBS_NOT_FOUND (1004)

WLBS_SUSPENDED (1013)

WLBS_ALREADY (1001)

WLBS_STOPPED (1005)

WLBS_DRAINING (1009)

Remarks

When enumerating instances of the MicrosoftNLB_Node class, you will always receive an instance representing the provider node, regardless of the remote control setting on the provider node. If there are any nodes in the cluster with remote control enabled, you will get instances representing those nodes as well. However, the provider node will always be listed first in an enumeration. For more information, see enumerating nodes.

To block new connections while allowing existing connections to terminate normally, use the Drain method of the MicrosoftNLB_Node class.

To re-enable disabled ports, use the Enable method of the MicrosoftNLB_Node class.

This method will fail if called on an instance of a MicrosoftNLB_Node object that represents a remote node.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Namespace
Root\MicrosoftNLB
MOF
WlbsProv.mof
DLL
WlbsProv.dll

See also

MicrosoftNLB_Node

MicrosoftNLB_ClusterSetting

DisableEx Method of the MicrosoftNLB_Node Class

Drain Method of the MicrosoftNLB_Node Class

Enable Method of the MicrosoftNLB_Node Class