MSFT_NetPrefixPolicy class

Represents the prefix policy for the Microsoft TCP/IP WMI v2 provider.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[UMLPackagePath("CIM::Core::CoreElements"), ClassVersion("1.0.0"), dynamic, provider("nettcpip"), AMENDMENT]
class MSFT_NetPrefixPolicy : CIM_ManagedElement
{
  string InstanceID;
  string Caption;
  string Description;
  string ElementName;
  string Prefix;
  uint32 Precedence;
  uint32 Label;
  uint8  Store;
};

Members

The MSFT_NetPrefixPolicy class has these types of members:

Methods

The MSFT_NetPrefixPolicy class has these methods.

Method Description
Create Creates a prefix policy.

Properties

The MSFT_NetPrefixPolicy class has these properties.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64)

Contains a short textual description of the object.

This property is inherited from CIM_ManagedElement.

Description

Data type: string

Access type: Read-only

Provides a textual description of the object.

This property is inherited from CIM_ManagedElement.

ElementName

Data type: string

Access type: Read-only

Contains a user-friendly name for the object. This property allows each instance to define a user-friendly name in addition to its key properties, identity data, and description information.

This property is inherited from CIM_ManagedElement.

InstanceID

Data type: string

Access type: Read-only

Uniquely and opaquely identifies an instance of this class within the scope of the containing Namespace.

[!Important]In order to ensure uniqueness within the Namespace, the value of InstanceID should be constructed in the following pattern:

OrgID:LocalID

OrgID must include a copyrighted, trademarked or otherwise unique name that is owned by the business entity defining the InstanceID, or be a registered ID that is assigned by a recognized global authority. This is similar to the structure of Schema class names. In addition, to ensure uniqueness the first colon in InstanceID must be between the OrgID andLocalID. Therefor the OrgID must not contain a colon (':').

LocalID is chosen by the business entity and should not be re-used to identify different underlying real-world elements.

If the preceding pattern is not used, the defining entity must assure that the resultant InstanceID is not re-used across any InstanceIDs produced by this or other providers for this Namespace.

For Distributed Management Task Force (DMTF) defined instances, the pattern must be used with the OrgID set to CIM.

This property is inherited from CIM_ManagedElement.

Label

Data type: uint32

Access type: Read/write

A label value that allows for policies that prefer a particular source address prefix for use with a destination address prefix.

Precedence

Data type: uint32

Access type: Read/write

The precedence value in the policy table, which is used for sorting destination addresses.

Prefix

Data type: string

Access type: Read-only

Qualifiers: key

The prefix of the policy.

Store

Data type: uint8

Access type: Read-only

Qualifiers: key

Whether the change is persistent, or only lasts until the next time that the computer boots.

Value Meaning
Persistent
0
The change is persistent.
Active
1
The change only lasts until next time that the computer boots.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\StandardCimv2
MOF
NetTCPIP.mof
DLL
NetTCPIP.dll