次の方法で共有


MicrosoftNLB_PortRule class

The MicrosoftNLB_PortRule WMI class is an abstract base class from which classes that represent port rules are derived. Do not use this class; use MicrosoftNLB_PortRuleEx instead.

The following syntax is simplified from MOF code and includes all inherited properties.

Syntax

[Abstract, Provider("Microsoft|NLB_Provider|V1.0"), AMENDMENT]
class MicrosoftNLB_PortRule : CIM_Setting
{
  string SettingID;
  string Caption;
  string Description;
  string Name;
  string AdapterGuid;
  uint32 EndPort = 65535;
  uint32 Protocol;
  uint32 StartPort = 0;
};

Members

The MicrosoftNLB_PortRule class has these types of members:

Methods

The MicrosoftNLB_PortRule class has these methods.

Method Description
SetDefaults Qualifiers: Static, Implemented
Resets the node's port rule configuration to the default.

Properties

The MicrosoftNLB_PortRule class has these properties.

AdapterGuid

Data type: string

Access type: Read-only

Specifies the GUID of the adapter to which Network Load Balancing is bound.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64)

Not used.

This property inherits from CIM_Setting.

Description

Data type: string

Access type: Read-only

A textual description of the object.

This property is inherited from CIM_Setting.

EndPort

Data type: uint32

Access type: Read-only

Describes the ending port number to which this rule applies. The default is 65535.

Name

Data type: string

Access type: Read-only

Qualifiers: Key, Override ("Name")

The name of the host to which this port rule applies

Protocol

Data type: uint32

Access type: Read-only

Describes the network protocol to which this rule applies. The possible values are the following.

TCP (1)

UDP (2)

Both (3)

Both (the default)

SettingID

Data type: string

Access type: Read-only

Qualifiers: MaxLen (256)

Not used.

This property inherits from CIM_Setting.

StartPort

Data type: uint32

Access type: Read-only

Qualifiers: Key

Specifies the starting port number to which this rule applies. The default is 0 (zero).

Remarks

The MicrosoftNLB_PortRule class is derived from the CIM_Setting class.

Requirements

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

See also

CIM_Setting

MicrosoftNLB_PortRuleEx