大网数据广告活动
Hyper-V与虚拟化

Msvm_FailoverNetworkAdapterSettingData class

· 52CE 我爱测

Represents the settings for a network adapter within the guest operating system, which will be applied at the time of a failover.

Represents the settings for a network adapter within the guest operating system, which will be applied at the time of a failover.

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

Syntax

[Dynamic, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_FailoverNetworkAdapterSettingData : CIM_SettingData
{
  string  InstanceID;
  string  Caption;
  string  Description;
  string  ElementName;
  uint16  ProtocolIFType;
  boolean DHCPEnabled;
  string  IPAddresses[];
  string  Subnets[];
  string  DefaultGateways[];
  string  DNSServers[];
};

Members

The Msvm_FailoverNetworkAdapterSettingData class has these types of members:

Properties

The Msvm_FailoverNetworkAdapterSettingData class has these properties.

Caption

Data type: string

Access type: Read-only

A short description of the object. This property is inherited from CIM_ManagedElement, and it is always set to Null.

DefaultGateways

Data type: string array

Access type: Read-only

Qualifiers: ArrayType ("Indexed")

An array of strings that specify the default IP gateways configured on the network adapter within the guest operating system. The maximum number of default IP gateways that may be configured on a single network adapter is five.

Description

Data type: string

Access type: Read-only

A description of the object. This property is inherited from CIM_ManagedElement, and it is always set to Null.

DHCPEnabled

Data type: boolean

Access type: Read-only

Specifies whether DHCP is enabled on the IPv4 interface of the network adapter within the guest operating system.

DNSServers

Data type: string array

Access type: Read-only

Qualifiers: ArrayType ("Indexed")

An array of strings that specify the DNS servers configured on the network adapter within the guest operating system.

ElementName

Data type: string

Access type: Read-only

A display name for the object. This property is inherited from CIM_ManagedElement, and it is always set to Null.

InstanceID

Data type: string

Access type: Read-only

Qualifiers: Key

Uniquely identifies an instance of this class. This property is inherited from CIM_SettingData, and it is always set to Null.

IPAddresses

Data type: string array

Access type: Read-only

Qualifiers: ArrayType ("Indexed")

An array of strings that specify the IP addresses configured on the network adapter within the guest operating system.

ProtocolIFType

Data type: uint16

Access type: Read-only

Identifies the Internet protocols that the settings specified by this instance apply to. This must be one of the following values.

Unknown (0)

Other (1)

IPv4 (4096)

IPv6 (4097)

IPv4/v6 (4098)

IPv4/IPv6

Subnets

Data type: string array

Access type: Read-only

Qualifiers: ArrayType ("Indexed")

An array of strings that specify the subnets configured on the network adapter within the guest operating system. Each element in this array applies to the corresponding element in the IPAddresses array.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Namespace Root\Virtualization\V2
MOF WindowsVirtualization.V2.mof
DLL Vmms.exe

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。